Skip to content

Instantly share code, notes, and snippets.

@james-huston
Created December 23, 2013 16:10
Show Gist options
  • Save james-huston/8099686 to your computer and use it in GitHub Desktop.
Save james-huston/8099686 to your computer and use it in GitHub Desktop.
restart a node process in debug mode
# 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