Search code examples
javascriptnode.jsdebuggingwebstorm

Webstorm debugger for node.js


I'm trying to configure Webstorm for using the node.js' debugger.

I've set the enviroment and everything, the app is running fine with the run button, but with the debugger button it just hangs up writing only:

/usr/bin/node --debug-brk=52006 --debug-brk node.js
debugger listening on port 52006

and it doesn't work or writes anything on the output.

Any idea of what is missing? I've already installed node-inspector and everything.

EDIT:

After sometime that I run the code, I get:

Failed to open socket on port 52708, waiting 1000 ms before retrying

Solution

  • Problem solved with the help of JetBrains. In a few words, I used cluster creating child nodes that weren't connected to the debugger.

    Full explanation here: https://intellij-support.jetbrains.com/tickets/13630