Created
December 23, 2013 16:10
-
-
Save james-huston/8099686 to your computer and use it in GitHub Desktop.
restart a node process in debug mode
This file contains hidden or 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
# find the pid, in this case 4333. | |
# this will start the debug port on 5858 | |
kill -s SIGUSR1 4333 | |
# start the command line debugger | |
node debug -p 4333 | |
# or start node-inspector | |
node-inspector | |
# then steer your browser to: | |
# http://machinename:8080/?debug=5858 | |
# more info here: | |
# http://nodejs.org/api/debugger.html#debugger_advanced_usage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment