Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

New Post: How to debug when using child_process

$
0
0
All,

Trying to use node.js to isolate JS plugins created by others through the child_process API in node.js. I can't get the child process to interact with the parent when running with the debugger, I get no errors running this code but the client can't send or receive messages, or write to console.log. I do get a console message that the debugger is running from both the parent as well as the client. When I run without the debugger it works fine.

The best I can do is run the remote debugger and attach to the node process and I can get the breakpoints to work. However that doesn't enable me to step through the client code at code startup as I can't attach to the debugger quick enough!

Do I have any other options to debug child processes?

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>