Debugging with node-inspector
- Install node-inspector
npm install -g node-inspector
- Enable debugging on the program you want to debug:
node --debug HelloWorldServer.js
- Launch node inspector:
node-inspector &
- Open a WebKit browser ie. Chrome to http://127.0.0.1:8080/debug?port=5858
- Click on the Scripts tab and choose your js file from the list
- Happy Stepping Over, Stepping Into, Stepping Out!