Remote WSL breaks the javascript debugger auto-attach if node isn't the topmost process #1212
Closed
Description
opened on Feb 16, 2022
Wrapping node in another process makes the javascript debugger to search sourcemaps from the host filesystem instead of from inside WSL.
Running node topmost:
Wrapping node with another node:
- Remote OS Version: Ubuntu 20.04.3 LTS
- Remote Extension/Connection Type: WSL
- Logs:
Version: 1.65.0-insider (user setup)
Commit: 52e65499654de7525e30df3a8228b69320796bf5
Date: 2022-02-16T05:16:18.653Z
Electron: 16.0.9
Chromium: 96.0.4664.174
Node.js: 16.9.1
V8: 9.6.180.23-electron.0
OS: Windows_NT x64 10.0.19043
Steps to Reproduce:
- Clone https://github.com/vvilhonen/vscode-remote-debugger-wsl-sourcemap-problem
- Enable vscode debugger auto-attach
- Set breakpoint on any line on
src/yo.ts
- Open integrated terminal
yarn
yarn compile
# Works
node dist/yo.js
# Doesn't work
node wrapped-node.js
# Doesn't work
yarn node dist/yo.js
Activity