In using node.js's debugger, I've been debugging by running the node process with node --debug-brk XXXX.js
. The annoying thing is, if I ever accidentally disconnect, I have to start the process all over again. Is there a way to reconnect to the debugger? When I try (via intelliJ), it simply never reconnects.
Open up Preferences > Settings and in the search box type in “node debug”. Under the Extensions tab there should be one extension titled “Node debug”. From here, click the first box: Debug > Node: Auto Attach and set the drop down to “on”. You're almost ready to go now.
The Node. js debugger client is not a full-featured debugger, but simple stepping and inspection are possible. To use it, start Node. js with the inspect argument followed by the path to the script to debug.
Try node-inspector it will reconnect to node server when you open it in browser but debugging will start from starting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With