Closed ashgti closed 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.
pwa-extensionHost
autoAttachChildProcesses: true
child_process.fork()
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.
Verified using the v2021.11.1217 build, works now thanks!
v2021.11.1217
Using the launch config type
pwa-extensionHost
withautoAttachChildProcesses: true
if I usechild_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.