Debugger source map incorrect for multiple debuggers attached
See original GitHub issueHi! since the last update to 1.47.0 at the 11.7.2020, attaching debuggers to multiple docker containers stopped working: We attach to multiple docker containers by:
{
"type": "node",
"request": "attach",
"name": "Attach[MICROSERVICENAME]",
"port": MICROSERVICEPORT,
"restart": true,
"address": "localhost",
"localRoot": "${workspaceFolder}/MICROSERVICENAME",
"protocol": "inspector",
"remoteRoot": "/usr/src/app"
}
Without setting any breakpoints, everything works fine. If I add a breakpoint somewhere in the code, the debugger stops at “random” positions in the code. These positions are always the same, depending on the breakpoint, but in completely different files. Also adding a breakpoint in microservice2 in debugmode, without attaching to it causes the debugger of microservice1 to stop at non existing breakpoints.
VS Code Version: 1.47.1 (1.48.0 has the same error) vscode-debugadapter-microservice1.gz vscode-debugadapter-microservice2.json.gz
EDIT Downgraded vscode to version 1.46.1 and everything works fine again
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Fixed in https://github.com/microsoft/vscode-js-debug/commit/fe04e627489afa3db943afde6a90a8c284adf33b
Thanks, looking at this. You can set
debug.javascript.usePreview: false
to skip using the new debugger on the latest VS Code version.