Last active
March 8, 2016 06:47
-
-
Save smokinjoe/aecc398e53500cbb7907 to your computer and use it in GitHub Desktop.
Debugging Hubot
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
# From https://github.com/github/hubot/issues/648#issuecomment-78796436 | |
The book Automation and Monitoring with Hubot has a section on debugging. | |
I've just tested that myself, and it seems to work well. Basically, the steps are: | |
npm install -g node-inspector | |
node-inspector --no-preload --web-port 8123 | |
Then, we can insert debugger in our code somewhere to setup a breakpoint. Then we run Hubot: | |
npm install -g coffee-script | |
coffee --nodejs --debug node_modules/.bin/hubot | |
Then, we visit http://127.0.0.1:8123/debug?port=5858 in our browser. | |
# https://leanpub.com/automation-and-monitoring-with-hubot/read#leanpub-auto-debugging-your-scripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment