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?
Please sign in to leave a comment.
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)?
i can't say exactly when it is start to not connecting to the process, it seems to be happening randomly
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
hi
i start it from phpstorm npm scripts window
It should be terminated according to On Closing Tool Windows with Running Process settings then...
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?
The information you have provided does not give the slightest chance to understand what's going on:(