microsoft / vscode-mock-debug

Starter sample for developing debug adapters for VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I get a clone of this project to have mock as a recognized debug type without installing the mock debug extension from the markeplace?

dave-dresser opened this issue · comments

I am investigating developing a debugger adapter. I'm working with the mock debug extension described here: https://code.visualstudio.com/api/extension-guides/debugger-extension. Just before the section titled, 'Development Setup for Mock Debug' it instructs you to uninstall the mock debug extension installed earlier from the Marketplace. When I uninstall the mock debug extension the 'mock' extension type is no longer recognized. Therefore, even though I can use the Extension launch from the vscode-mock-debug folder and get the [Extension Development Host] on the mock-test folder. When I try to launch the 'Ask for file name' launch', I get a pop-up with the message, "Configured debug type 'mock' is not supported.' If I reinstall the mock debug extension from the marketplace this error goes away and the example works, but I can't debug the code in the vscode-mock-debug folder.

My problem was that my vscode install was version 1.41.1 while the clone of this project had version 1.42.0 in the package.json. Once I caught that discrepancy I was able to change the version in package.json and launch and debug the extension code.