Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reconnect to node.js's remote debugger

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.

like image 618
B T Avatar asked Jun 11 '14 05:06

B T


People also ask

How do I start Node debugger?

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.

Does debugger work in Node?

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.


1 Answers

Try node-inspector it will reconnect to node server when you open it in browser but debugging will start from starting.

like image 187
KlwntSingh Avatar answered Sep 30 '22 19:09

KlwntSingh