NodeJS "--debug" parameter is deprecated
Opened this issue ยท 19 comments
(node:2624) DeprecationWarning: node --debug is deprecated. Please use node --inspect instead.
Ran into the same problem today.
DeprecationWarning: node --debug
and node --debug-brk
are invalid. Please use node --inspect
or node --inspect-brk
instead.
same here , never used this, but fixing the path , this is what I get, hard first run !
Can any of you get the debugger to work with Node 6.11? Even using --inspect
, I can do breakpoints, but I cannot inspect any variables, as reported in issue #237
I'm using node v8.2.1 having the same prob.
maybe line 56 in debugger.coffee needs to change to "--inspect-brk"? perhaps it shouldn't be hard coded in a future release :-)
I think it isn't that simple. Otherwise I'd be able to inspect values when changing the command line manually.
So the package is node v8 incompatible? Any news on this?
Yep I have the same issue. I tried changing line 56 but after reloading the app, it only loads up in chrome. I can't debug from within Atom using node 8 on osx.
Hi adding in a +1 on the issue and looking for a solution. I am new to Mac and Atom (new Job) so not sure how much I can add at this point other than I would like to be able to debug node 8 in atom. Any information (such as why this is an issue) would be appreciated. It is deeper than the command line option - right?
+1 on Mac
Facing same issue !! Please share if anyone got solution .
+1 on Mac using v8.9.3
+1 on Windows, using v8.9.3
Anyone found a solution?
So, one way to solve it, as @vildmedtog pointed out.
Go to your .atom
directory, find packages\node-debugger\lib\debugger.coffee
line 56, change --debug
to --inspect
.
That solved the issue for me.
Edit:
This makes the error go away, but I don't seem to get the debugger itself working, I assume this is because the node-inspector uses Chrome websocket debugger, not the old debugging method.
I suppose we'll need a new version of node-debugger after all.
Edit 2018-06-17:
Not sure if this type of comments is welcome here, but this is a personal opinion, VSCode gives a much better debugging experience, and a generally better editing experience, it probably would be a good idea to use it until this is fixed.
Same issue here. No fix still?
@relief-melone Since I couldn't debug node 8 in atom, I use vscode and chrome dev tools now.
+1 on ubuntu 16.04 and Node v8
Any status on a fix? This issue renders the whole package worthless.
Status??