-
Notifications
You must be signed in to change notification settings - Fork 76
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
using --inspect crashes on restart #139
Comments
Same here, I'm starting it with nodemon --inspect=0.0.0.0:9229 /app/server.js inside a container based on
with a shared volume on sources. Whenever I save a file on the sources volume, nodemon restarts but crashes with
Re-saving the same file, again restarts but works ok this time. |
Yeah same problem, using sails here + nodemon. Doing the following: |
Just kill inspector and start inspector again
in your package.json file. Kill it first before you run debug inspector on the same port.
|
Please try not to use nodemon to enable debug mode. Try to use |
for put node --inspect=... at the place of nodemon --debug |
Try this approach may be it helps. Actually it's getting started in background so you need to search for process which you have tried to run with command like nodemon --inspect app.js , so check if node server is running or not. ps ax | grep node then killall -9 node and then try this command and it will work. |
|
@wzup Please install kill-port as dev npm package first and then you can use it in your package.json script |
No solution for this? It's really annoying as you don't even get output anymore when it fails.. |
This seems to be an irritating bug with no clear solution yet |
Here is my nodemon gulpfile. I am running the process in a docker container.
Every time I save a file nodemon restarts as it normally would. But it also crashes with this error message:
Starting inspector on 0.0.0.0:9229 failed: address already in use app crashed - waiting for file changes before starting...
If I then save the file again it restarts it just fine. Is there a way to wait for the 9229 port to release before it starts again? It's really annoying to save a file twice just to get it to work.
If I change it to --debug it works, but that is deprecated. They want everyone to use --inspect.
The text was updated successfully, but these errors were encountered: