Skip to content

Instantly share code, notes, and snippets.

@jjasghar
Forked from ejhayes/README.md
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjasghar/594064aca8aac6cca079 to your computer and use it in GitHub Desktop.
Save jjasghar/594064aca8aac6cca079 to your computer and use it in GitHub Desktop.

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