Created
May 3, 2012 21:09
-
-
Save dcsg/2589531 to your computer and use it in GitHub Desktop.
How to use node-inspector to debug Node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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