-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use 'autoAttachChildProcesses' to debug forked processes #75253
Comments
|
I changed to Are you saying I can skip forking with a debug port? |
no, you will still have to put the child process in debug mode. Cluster.fork does this for you. If you are using the plain fork you'll have to do it yourself. Since you are using I suggest to use |
In addition, be careful that you are not passing two |
So I got it to work by replacing these two lines:
with:
A couple of questions:
Many thanks for your help! |
|
The forked process launches and behaves as expected; however, the debugger does not pause on breakpoints of the forked code.
Hovering over the breakpoint shows
Unverified breakpoint
tooltip. In addition, the Debug activity bar showsBreakpoint set but not yet bound
:It occurs natively on Windows or in WSL using the
Remote - WSL
extention.Steps to Reproduce:
launch.json
file as follows:index.js
m1.js
launch.json
run.vscode
launch configuration.Does this issue occur when all extensions are disabled?: Yes
Is the
autoAttachChildProcesses
property supported forchild_process.fork()
or only forcluster.fork()
?The text was updated successfully, but these errors were encountered: