vscode: Protocol: "inspector" inside launch.json is ignored
Issue Type: Bug
Steps:
- Create following configuration for mocha/typescript unit tests:
{
"type": "node",
"request": "launch",
"protocol": "inspector",
"name": "Mocha Current File",
"program": "${workspaceFolder}/packages/common/node_modules/mocha/bin/_mocha",
"args": [
"-r",
"ts-node/register",
"--timeout",
"999999",
"--colors",
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
- Run test against selected typescript spec file
Actual:
- Getting modal with following error:
Cannot connect to runtime via 'legacy' protocol; try to use 'inspector' protocol. - Getting deprecation warning
(node:26438) [DEP0062] DeprecationWarning: 'node --debug' and 'node --debug-brk' are invalid. Please use 'node --inspect' or 'node --inspect-brk' instead.inside of a terminal, as ifprotocol: legacywas set inlaunch.jsonconfiguration.
Same configuration works perfectly well on latest stable version of VSCode (just finished running both side by side).
Expected:
- Debugger launches, attaches to mocha test run and triggers breakpoints, same as for VSCode’s latest stable version (Version 1.26.1 (1.26.1)).
VS Code version: Code - Insiders 1.27.0-insider (7b9afc4196bda60b0facdf62cfc02815509b23d6, 2018-09-03T09:07:33.052Z) OS version: Darwin x64 17.7.0
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Core™ i7-4770HQ CPU @ 2.20GHz (8 x 2200) |
| GPU Status | 2d_canvas: enabled checker_imaging: disabled_off flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: enabled rasterization: enabled video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled |
| Load (avg) | 5, 4, 3 |
| Memory (System) | 16.00GB (0.03GB free) |
| Process Argv | /Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron |
| Screen Reader | no |
| VM | 0% |
Extensions (60)
| Extension | Author (truncated) | Version |
|---|---|---|
| json-to-ts | Mar | 1.5.5 |
| vscode-html-scss | P-d | 0.0.42 |
| indenticator | Sir | 0.6.0 |
| html-css-class-completion | Zig | 1.17.1 |
| vscode-file-peek | abi | 1.0.1 |
| html-snippets | abu | 0.2.1 |
| vscode-ngrx-snippets | ahs | 0.0.4 |
| ng-template | Ang | 0.1.10 |
| npm-intellisense | chr | 1.3.0 |
| path-intellisense | chr | 1.4.2 |
| vscode-svgviewer | css | 1.4.4 |
| vscode-eslint | dba | 1.5.0 |
| vscode-protractor-snippets | dee | 1.0.5 |
| githistory | don | 0.4.2 |
| xml | Dot | 2.3.2 |
| vscode-babel-coloring | dza | 0.0.4 |
| gitlens | eam | 8.5.6 |
| EditorConfig | Edi | 0.12.4 |
| tslint | eg2 | 1.0.38 |
| vscode-npm-script | eg2 | 0.3.5 |
| prettier-vscode | esb | 1.6.1 |
| git-project-manager | fel | 1.6.1 |
| vscode-yarn | gam | 1.6.0 |
| todo-tree | Gru | 0.0.82 |
| beautify | Hoo | 1.4.2 |
| docthis | joe | 0.7.1 |
| angular-essentials | joh | 0.4.0 |
| Angular2 | joh | 6.1.5 |
| vscode-colorize | kam | 0.7.1 |
| es6-angular-snips | kas | 0.0.3 |
| MagicPython | mag | 1.0.12 |
| code-coverage | mar | 0.0.2 |
| HTMLHint | mka | 0.5.0 |
| prettify-json | moh | 0.0.3 |
| vscode-scss | mrm | 0.6.2 |
| python | ms- | 2018.7.1 |
| debugger-for-chrome | msj | 4.9.1 |
| angular2-inline | nat | 0.0.17 |
| material-icon-theme | PKi | 3.5.3 |
| polymer-ide | pol | 0.6.0 |
| seti-icons | qin | 0.1.3 |
| vscode-sort-json | ric | 1.13.0 |
| vscode-icons | rob | 7.25.0 |
| sass-indented | rob | 1.4.9 |
| vscode-coverage-gutters | rya | 2.1.1 |
| salesforcedx-vscode | sal | 43.14.0 |
| salesforcedx-vscode-apex | sal | 43.14.0 |
| salesforcedx-vscode-apex-debugger | sal | 43.14.0 |
| salesforcedx-vscode-apex-replay-debugger | sal | 43.14.0 |
| salesforcedx-vscode-core | sal | 43.14.0 |
| salesforcedx-vscode-lightning | sal | 43.14.0 |
| salesforcedx-vscode-visualforce | sal | 43.14.0 |
| code-settings-sync | Sha | 3.1.2 |
| stylelint | shi | 0.42.0 |
| simontest | Sim | 0.18.4 |
| python | tht | 0.2.3 |
| vsfire | tob | 1.3.2 |
| vscode-todo-highlight | way | 1.0.4 |
| JasmineSnippets | xab | 1.0.1 |
| JavaScriptSnippets | xab | 1.7.0 |
(3 theme extensions excluded)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (11 by maintainers)
@Kamilius thanks for helping us getting this resolved.
@sandy081 are you aware of any issues why a built-in extension could be disabled accidentally? In addition, it should not be possible that “Node Debug (legacy)” is enabled if “Node Debug” is not (because Node Debug (legacy)" depends on “Node Debug”). I’ve created https://github.com/Microsoft/vscode/issues/58065 for this issue.