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
I was running an deno program on vscode with Control+F5, and clicked "Debug" code lens above an test. Then I got this.
* Executing task: C:\ProgramData\chocolatey\lib\deno\deno.EXE test --allow-all --no-check --trace-ops --unstable --inspect-wait --filter /^Given example$/ d:\Repos\test\test.ts
Cannot start inspector server: error creating server listener: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048).
* The terminal process "C:\ProgramData\chocolatey\lib\deno\deno.EXE 'test', '--allow-all', '--no-check', '--trace-ops', '--unstable', '--inspect-wait', '--filter', '/^Given example$/', 'd:\Repos\test\test.ts'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
I know it's my fault that try debugging with duplicate port, but how to set different port whenever I debug test?
I tried adding "--inspect-wait=127.0.0.1:9399 to "deno.codeLens.testArgs" settings, but I got error: the argument '--inspect-wait[=<HOST_AND_PORT>]' cannot be used multiple times. Even if this worked I think I will get same error again if I debug multiple test simultaneously.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was running an deno program on vscode with Control+F5, and clicked "Debug" code lens above an test. Then I got this.
I know it's my fault that try debugging with duplicate port, but how to set different port whenever I debug test?
I tried adding
"--inspect-wait=127.0.0.1:9399
to "deno.codeLens.testArgs" settings, but I goterror: the argument '--inspect-wait[=<HOST_AND_PORT>]' cannot be used multiple times
. Even if this worked I think I will get same error again if I debug multiple test simultaneously.What's the recommended way?
Beta Was this translation helpful? Give feedback.
All reactions