microsoft / vscode-mock-debug

Starter sample for developing debug adapters for VSCode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runtime errors after publish

jschmidt42 opened this issue · comments

Hi, I have been developing this new vscode extension debugger https://github.com/jschmidt42/stingray-vscode-debugger, so far everything is going well. When I run and debug from the extension repo and it launches a new instance of vscode for debugging, everything works fine.

But as soon as I try to copy the extension under C:\Users\<user>\.vscode\extensions (or publish the extension using vsce) and try it out for real, it doesn't work anymore and the only error I am getting is:

Unexpected token t in JSON at position 3. Stopping the debug adapter.

And I have no clue where the error comes from.

Is there some tricks to debug this kind of issue?

Thanks,

Apparently, it seems to be the console.warn that were left there that prevented the extension to work when officially installed.

Extension has been published https://marketplace.visualstudio.com/items?itemName=jschmidt42.stingray-debug after removing the console.warn and I do not repro that error anymore.

Thanks,