Webstorm debugger for node.js doesn't connect for executed node.js process

I'm try to debug my js code from node.

 

For example, I

  1. make a default node.js project from webstorm templates (express app).
  2. press debug button (or Run -> Debug at top bar)
  3. presetted debugger for that project started
  4. At debugger window I see how node process started and waiting while any debugger connect for it
  5. And that's all. Nothing happens.
  6. But if I use embedded node.js debugger at chrome, it connected to the 62102 port and I see message how debugger connected.

What I'm doing wrong? As I see at guide here: https://www.jetbrains.com/help/webstorm/running-and-debugging-node-js.html, webstorm debugger must automatically connect to node process.

My webstorm data:

WebStorm 2018.1.5
Build #WS-181.5281.31, built on June 14, 2018

JRE: 1.8.0_152-release-1136-b39 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6

3 comments

Please can you explain what makes you think that the debugger doesn't connect? Lack of `Debugger attached` message? You shouldn't care about it, debugger is attached even though the message is not there.

Did you try setting breakpoints? Also, I'd suggest enabling After launch in Browser/Live Edit tab of your run configuration to the application loaded in browser once the server is started

 

0

Yes, I'm sure that webstorm debugger is not connected.

When I turn debug at express app example and after that open http://localhost:3000 at my browser, I don't see anything, because node doesn't listen 3000 port, because that started with --inspect-brk param and waiting for debugger. And if i connect to node process with chrome debugger, and start execution everything is ok.

0

weird... you are using the default configuration that definitely works.

Can you recreate the issue and provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files) and screencast that shows your steps?

0

Please sign in to leave a comment.