Skip to content
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

--debug dose not work anymore after node v8 #1062

Closed
mlibre opened this issue Jul 3, 2017 · 14 comments
Closed

--debug dose not work anymore after node v8 #1062

mlibre opened this issue Jul 3, 2017 · 14 comments

Comments

@mlibre
Copy link

mlibre commented Jul 3, 2017

$ node -v
v8.1.2

$ nodemon --debug app.js 
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug app.js`
(node:9220) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
[nodemon] app crashed - waiting for file changes before starting...

$ nodemon app.js 
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node app.js`
#Server. Running On 3000 and So on ........................
@remy
Copy link
Owner

remy commented Jul 3, 2017

Use --inspect as per the message from node.

$ nodemon app.js -- --inspect

@remy remy closed this as completed Jul 3, 2017
@Jokero
Copy link

Jokero commented Dec 13, 2017

should be nodemon -- --inspect app.js

@prameshbajra
Copy link

Neither nodemon -- --inspect app.js nor nodemon app.js -- --inspect worked for me. Any alternatives?

@Jokero
Copy link

Jokero commented Dec 13, 2017

Check node --inspect app.js directly. If it does not work, problem is not related to nodemon. If you run app inside docker container and want to have remote debugging, specify 0.0.0.0:9229 explicitly:

nodemon -- --inspect 0.0.0.0:9229 app.js

Last one works for me

@remy
Copy link
Owner

remy commented Dec 13, 2017

Damnit - latest nodemon isn't passing this argument. I'll raise a new issue as it's unrelated to this initial issue.

@Jokero
Copy link

Jokero commented Dec 13, 2017

Yes, I use not newest version. Then inspect-brk maybe also doesn't work

@remy
Copy link
Owner

remy commented Dec 13, 2017

Fixed and live in nodemon@1.12.7

@RooSoft
Copy link

RooSoft commented Dec 14, 2017

Using 1.12.7, the --inspect switch is still not working....

@remy
Copy link
Owner

remy commented Dec 14, 2017

@RooSoft please file a new issue with full details and if possible a PR with resolution.

@mstellaluna
Copy link

mstellaluna commented Dec 15, 2017

I am currently having this issue also, inspect is loading but its not stopping at the debugger; specified in one of my required files that my main app.js file reads from I have nodemon 1.13.1 on windows 10 with node v9.3.0

@remy
Copy link
Owner

remy commented Dec 15, 2017

@mstellaluna you've commented on a closed issue, but I've just tried the same thing and working…but you've not really included much information to replicate fully.

Here's windows 10 for me:

nodemon-inspect

@mstellaluna
Copy link

@remy sorry I apologize I didn't notice it was closed as other were commenting as of recent.

@vitalii-svitla
Copy link

Is it possible to attach a Vs Code debugger (i'm following https://blog.docker.com/2016/07/live-debugging-docker/) to :9229? Its failing to connect in my case.

@vitalii-svitla
Copy link

Found updated version here: https://github.com/docker/labs/blob/master/developer-tools/nodejs-debugging/VSCode-README.md
Seems to work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants