node multiprocess debugging not working

I try to debug a multiprocess node application, but the childs won't show up in the debugger.

In the log I see: 

Debugger listening on ws://127.0.0.1:60737/aee8b29c-6ed1-4dee-9fff-f963da904c6b
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Debugger listening on ws://127.0.0.1:60789/94932e77-6304-4cd3-a28d-03c83a8ca5e0
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.```

but the frames window shows: "Frames are not available" and breakpoints won't work

I have tried node 12 and 13.

0
3 comments

What methods do you use to spawn child processes? Are you using source maps (i.e. is your code transpiled or postprocessed in any way)? Could you share a sample project the issue can be reproduced with?

0

I'm running this script: https://github.com/NexusNull/ALBot/blob/testing/main.js#L131

I have now also tried starting it in visual studio code and there it shows the child processes in the vsc debugger.

0

can't run it unfortunately, it requires credentials to run:(

Checked this with other apps that fork child processes with

child_process.fork('Child.js', {
stdio: [0, 1, 2, 'ipc'],
execArgv: []
});

- works fine for me when using Node.js 12.13.0 and 13.9.0

 

what IDE version do you use? could you share a screnshot of your run configuration?

0

Please sign in to leave a comment.