microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.64k stars 271 forks source link

pwa-extensionHost with autoAttachChildProcesses does not attach to child processes #1134

Closed ashgti closed 2 years ago

ashgti commented 2 years ago

Using the launch config type pwa-extensionHost with autoAttachChildProcesses: true if I use child_process.fork() the debugger does not auto-attach to the child process.

I think https://github.com/microsoft/vscode-js-debug/blob/a201e735c94b9aeb1e13d8c586b91a1fe1ab62b3/src/targets/node/extensionHostLauncher.ts#L39 does not call into https://github.com/microsoft/vscode-js-debug/blob/a201e735c94b9aeb1e13d8c586b91a1fe1ab62b3/src/targets/node/nodeLauncherBase.ts#L292 which resolves the env variables that would enable auto-attaching.

ashgti commented 2 years ago

Verified using the v2021.11.1217 build, works now thanks!