Node.js debugger won't execute script

I have a Node.js project which runs fine, but when I go to debug (locally) it runs node with --debug-brk PORT, presumably breaking on the first line.  There is no sign of this in the Editor window. The script doesn't execute, but the debug flow control buttons/commands aren't enabled either.

Is this a bug or am I missing something?  I'm running WebStorm 5.0.4 on OSX 10.8.2...

Thanks for the help...

3 comments
Comment actions Permalink

I have a Node.js project which runs fine, but when I go to debug (locally) it runs node with --debug-brk PORT, presumably breaking on the first line.


IDE runs node with --debug-brk because it needs to register breakpoints right after node process is started, but before javascript code is executed.

There is no sign of this in the Editor window. The script doesn't execute, but the debug flow control buttons/commands aren't enabled either.


You have to put breakpoints in the editor (like in node_inspector) before debugging.
0
Comment actions Permalink

There are.  Even putting one on the first line doesn't work...

0
Comment actions Permalink

Yes, WebStorm 5.0.4 has problems.
http://youtrack.jetbrains.com/issue/WEB-2313 
Already fixed in WebStorm 6 EAP.

0

Please sign in to leave a comment.