First of all, Hubot is a complete Node.js application itself. And for Node.js applications in general, node-inspector is a celebrity out there as a debugger based on Blink Developer Tools.
If you did not install node-inspector yet, install it as a global package and under root.
$sudo npm install -g node-inspector
Wait for a few seconds till the installation process is done.
Inside your hubot project folder, start the debugger:
$node-inspector --no-preload --web-port 8123
When the following message appears, it means that our debug session is ready.
Node Inspector v1.0.0 Visit http://127.0.0.1:8123/?port=5858 to start debugging.
Now we need to start our bot, in a different way than the old ‘bin/hubot’ command and remember to put your bot name corresponding to your application:
$coffee --nodejs --debug node_modules/.bin/hubot --name "[your_bot_name]"
And to set a breakpoint, put debugger to any line of your code, like:
In Chrome, visit http://127.0.0.1:8123/?port=5858 to start your debugging session, debug like any of your web applications.