I can't seem to debug mocha scripts.
I am able to run node with inspector like this node --inspect script.js
. This then gives me a url to go to to debug, something like chrome-devtools://devtools/remote/...
However, when I use mocha with this line mocha --inspect test.js
I am not able to debug. It says 'Debugger listening on [::]:5858'. Is there any way for me to debug a mocha test using node's inspector?
Going to localhost:5858 gives me this info:
Type: connect
V8-Version: 5.1.281.84
Protocol-Version: 1
Embedding-Host: node v6.9.1
Content-Length: 0
Using --inspect --debug-brk
doesn't help.