Skip to content

Remote WSL breaks the javascript debugger auto-attach if node isn't the topmost process #1212

Closed
@vvilhonen

Description

Wrapping node in another process makes the javascript debugger to search sourcemaps from the host filesystem instead of from inside WSL.

Running node topmost:

works

Wrapping node with another node:

doesnt work

  • 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:

  1. Clone https://github.com/vvilhonen/vscode-remote-debugger-wsl-sourcemap-problem
  2. Enable vscode debugger auto-attach
  3. Set breakpoint on any line on src/yo.ts
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions