node js debugger stuck on "Connecting to localhost:9228" with nodemon

hello

i am debugging my node instance but once a while the debugger could not connect, only after i quit phpstorm. also after i quit phpstorm i can see in the process manager the the debugger port is still open, so i need to close it explicitly.

this is the command i am running with:

nodemon -i --inspect=9228 server.js

 

and this is my debugger configuration:

 

how can i resolve this?

0
7 comments

Configuration looks OK (and it works for you most of the time, doesn't it)?

Please provide the detailed problem description/steps to repeat. also, what is On Closing Tool Windows with Running Process value (Settings | Appearance & Behavior | System Settings)?

0
Avatar
Permanently deleted user

i can't say exactly when it is start to not connecting to the process, it seems to be happening randomly

 

0

Do you start nodemon from the IDE, or externally? In the latter case, you can't expect the process to be terminated on shutting down the IDE

0
Avatar
Permanently deleted user

hi 

i start it from phpstorm npm scripts window

0

It should be terminated according to On Closing Tool Windows with Running Process settings then...

0
Avatar
Permanently deleted user

Yeah but that's not really my problem... The main issue is that the debugger is not connecting for no reason. Is there anything I can do about it?

0

The information you have provided does not give the slightest chance to understand what's going on:(

0

Please sign in to leave a comment.