Edit Nov 2016: Node now has a built in debugger that you can start with --inspect
. This answer explains it: https://stackoverflow.com/a/39901169/30946.
Edit, years later: the shortest path in Node 6+ is: mocha --debug-brk --inspect ./test.js
coupled with the Node Inspector Manager plugin.
Many weeks later, no answers. Here's the quickest path that I found.
node-inspector
node-inspector
-- it will now be listening on 5858--debug-brk
debugger
on it. Occasionally it won't move the code file's window to the right place, so you'll have to hit F10 to get it to step to the next line and show where it's at in the file. Command line:
node-inspector & mocha --compilers coffee:coffee-script/register ./test/appTests.coffee --ui bdd -d -g "should X then Y" --debug-brk