I have a test file on a remote machine and I want to go through it with a node-inspector . So, on the remote machine ( Vagrantfile ):
node-inspector & mocha --debug-brk foo.test.js
Then on my dev machine, I open Canary and go to:
http:
However, I canโt debug my test, because the debugger breaks into the first line in node_modules/mocha/bin/_mocha , and the test file does not appear on the Sources tab

I tried to set a breakpoint inside _mocha, on line 398 :
runner = mocha.run(program.exit ? exit : exitLater);
But when I try to โenterโ to see how the run function is executed, it does not enter. I can see the output in the console, so it runs. If I set a breakpoint directly in the run function , it will not be broken there.
In addition, the test file never appears on the Sources tab, so I cannot set breakpoints in it. I also tried adding a debugger statement to it, but it still doesn't crash there.
How can I make node -inspector show a test file and execute it?
node v0.12.0 node-inspector v0.10.0 mocha v2.2.4
source share