-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodemon restarts twice on file changes #48501
Comments
@roblourens This problem only occurs for "inspector" protocol. It seems to be a timing issue because it is almost impossible to reproduce when running in Dev Tools. Here is the result of my tracing what's going on on the VS Code side (in rawDebugSession). "legacy" works fine:
"inspector" mostly works fine too when running it in Dev Tools:
but sometimes "inspector" results in the debuggee launched twice:
The problem is the unexpected terminated event (see arrow) but I have no clue why this happens... I debugged node-debug2 a bit but I could not find the reason for the early Terminate event. |
I can't repro any problem with nodemon... was this fixed by any of the debug changes last week? |
@isidorn since I did not change anything, did you? |
I can still reproduce this with the following javascript file
And with the following configuration
|
@roblourens yes you are doing everything fine. I have node version 8.9.1 and nodemon 1.11.0 |
Oh, you have auto attach enabled and are running it in the terminal, right? In your gif I see it switch into multi-session debug mode which is not right. Could this just be related to #49403? But you don't get the error popup. |
@roblourens I can repro if I have auto-attach:false, however I can no longer repro if I remove |
I'm pretty sure that this issue is not related to auto-attach. Using the "integratedTerminal" is mandatory for the nodemon setup anyway because otherwise there is now way to interact with nodemon from the command line (e.g. for killing it). |
I pointed out auto-attach because @isidorn's gif shows a second debug session starting ( I just can't repro any problem, so let's jump on a call to debug this, whenever one of you is free. Or you could set |
I investigated a bit more, and My previous comment that I can repro with |
I'm no longer able to reproduce this. |
Refs: #48423
The text was updated successfully, but these errors were encountered: