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
Avatar
Permanently deleted user

I hava the same problem, my webstorm version is  2021.1.1/mac

I start a nestjs project by 'npm run start:debug', and add a 'Attach to Node.js/Chrome' debugger, open 'Reconnect automatically', Debugger attach successful, and breakpoints is hit.

when I change code and save, debugger doesn't reconnect.

I  also do the same step in a koa project, the same things happened.

0

@... your issue is clearly not the same (actually this thread is just a collection of different issues related to node.js debugging), it is tracked at https://youtrack.jetbrains.com/issue/WEB-50455. Please follow it for updates

guys, would you be so kind to start a new thread instead of posting to age-old ones? Such comments make the discussion a mess

0

请先登录再写评论。