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...
请先登录再写评论。
IDE runs node with --debug-brk because it needs to register breakpoints right after node process is started, but before javascript code is executed.
You have to put breakpoints in the editor (like in node_inspector) before debugging.
There are. Even putting one on the first line doesn't work...
Yes, WebStorm 5.0.4 has problems.
http://youtrack.jetbrains.com/issue/WEB-2313
Already fixed in WebStorm 6 EAP.