Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created June 6, 2012 01:12
Show Gist options
  • Save ejhayes/2879225 to your computer and use it in GitHub Desktop.
Save ejhayes/2879225 to your computer and use it in GitHub Desktop.
Debugging Hubot Scripts using Node Inspector

About

Use node-inspector to debug hubot!

sudo npm install -g node-inspector

Run Hubot in Debug Mode

coffee --nodejs --debug $(which hubot)

if you need to freeze execution on the first line of the node script, use this instead:

coffee --nodejs --debug-brk $(which hubot)

Start node-inspector

node-inspector or node-inspector &

Visit in browser (chrome) and start making changes

http://0.0.0.0:8080/debug?port=5858

Notes

  • You have to restart node-inspector when you stop your node program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment