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


source to share





All Articles