Skip to content

Instantly share code, notes, and snippets.

@dcsg
Created May 3, 2012 21:09
Show Gist options
  • Save dcsg/2589531 to your computer and use it in GitHub Desktop.
Save dcsg/2589531 to your computer and use it in GitHub Desktop.
How to use node-inspector to debug Node.js
1. start the application:
NODE_ENV=local node yourApplicationName.js --debug-brk
2. change the process pid to node-inspector
sudo kill -s USR1 pid_id
3. start node-inspector
node-inspector &
4. open the browser
http://0.0.0.0:8080/debug?port=5858
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment