Mocha-d, node-inspector, node debug all hang with sails

I am using sails 0.11

with mocha

. When I add debugger;

mocha inside the test and then run mocha -d

, the server gets up correctly but then freezes within the test.

Here's a snapshot:

enter image description here

above the server elevator output I can see Debugger listening on port 5858

, so I tried to navigate to localhost:5858

and I see this:

Type: connect
V8-Version: 4.1.0.25
Protocol-Version: 1
Embedding-Host: node v1.6.2
Content-Length: 0

      

I think it might go deeper. It actually happens in a similar way when I try node debug app.js

. Fun enough debugging works when I do node --debug app.js

, although it probably mocha -d

uses node debug

internally.

I researched this and found that other people were having sailing and debugging issues, which again leads me to think it might have something to do with this. https://github.com/balderdashy/sails/issues/2670

I have also tried node-inspector

and it shows a similar problem where it hangs.

+3
javascript debugging node.js mocha sails.js


source to share


No one has answered this question yet

Check out similar questions:

36
What's the smallest resistance path for debugging mocha tests?
sixteen
Run node inspector with mocha
3
node debugger-inspector keeps aborting due to "listening on EADDRINUSE"
2
Node-Inspector does not stop at breakpoints when I update my application
1
Visual Studio 2013 remote debugger and mocha
1
Node is not broken on first line when run as "node-debug-brk"
1
Debug meteorjs app with node-inspector
1
Inspector node in docker does not load sources
0
Running Node Inspector on Amazon AWS
0
Get host pointer to open browser debug page in Windows



All Articles
Loading...
X
Show
Funny
Dev
Pics