You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to .vscode/launch.json and add --inspect to the list of arguments to pass
Execute npm test to run the extension tests
Observe --inspect lacking in the command output
This makes sense, because the test script invokes /node_modules/vscode/bin/test and completely bypasses the VS Code debugger configuration and the test script does not seem to read it or pass its own command line arguments along onto the VS Code instance it starts:
Is there another mechanism by which the control host could be started given extra command line arguments? Bonus points for something that works both with F5 to run and debug extensions test and npm test.
Does this issue occur when all extensions are disabled?: Does not apply
The text was updated successfully, but these errors were encountered:
This is specifically what I am looking to replace by a more native mechanism, but I think the broader problem of passing command line arguments to the VS Code extension host is more useful to discuss as if there was one such it would solve my specific issue, too.
Not sure exactly why this ended up in the vscode-generator-code project.
Since a while,/node_modules/vscode/bin/test got extracted to a separate node module vscode-test (https://github.com/microsoft/vscode-test) and got more customizable. It lets you pass in args and if I'm not mistaken that should work for --inspect as well.
Can you check if that solves your problem? If not I suggest to file a enhancement request to microsoft/vscode-test. (or I move the issue there)
Using launch configurations also from outside VSCode is currently not possible. microsoft/vscode#10979 is the issue for that.
Steps to Reproduce:
.vscode/launch.json
and add--inspect
to the list of arguments to passnpm test
to run the extension tests--inspect
lacking in the command outputThis makes sense, because the
test
script invokes/node_modules/vscode/bin/test
and completely bypasses the VS Code debugger configuration and thetest
script does not seem to read it or pass its own command line arguments along onto the VS Code instance it starts:Is there another mechanism by which the control host could be started given extra command line arguments? Bonus points for something that works both with F5 to run and debug extensions test and
npm test
.Does this issue occur when all extensions are disabled?: Does not apply
The text was updated successfully, but these errors were encountered: