Nodemon: --debug dose not work anymore after node v8

Created on 3 Jul 2017  路  14Comments  路  Source: remy/nodemon

$ 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 ........................

Most helpful comment

Use --inspect as per the message from node.

```
$ nodemon app.js -- --inspect
````

All 14 comments

Use --inspect as per the message from node.

```
$ nodemon app.js -- --inspect
````

should be nodemon -- --inspect app.js

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

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

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

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

Fixed and live in [email protected]

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

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

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

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

Here's windows 10 for me:

nodemon-inspect

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

medoix picture medoix  路  4Comments

Autre31415 picture Autre31415  路  4Comments

hkeio picture hkeio  路  3Comments

fabianMendez picture fabianMendez  路  4Comments

giacomorebonato picture giacomorebonato  路  5Comments