Node.js Debug
How to debug with node inspector! Step one: Do test driven development so you don’t have to. Ok, just kidding. Here is step one...Install node inspector from the command line using sudo npm install -g node-inspector.
The command to open your app is node-debug “app.js”. This will open a new chrome window and it will console log the local address of the debugging server.
And you are ready to go! Navigate your browser to that local address and the debugging window will be ready for you.
On the right you have all your scoped variables and call stack. You can also call expression to be watched in the top window. Something useful is you can live edit just like you can on a front end website and save to the file but this is not enabled by default in the configurations file. What I found very helpful is by clicking in the call stack you can restart current function instead of rebooting your program.













