atom-node-debugger icon indicating copy to clipboard operation
atom-node-debugger copied to clipboard

NodeJS "--debug" parameter is deprecated

Open jmaister opened this issue 8 years ago • 19 comments

(node:2624) DeprecationWarning: node --debug is deprecated. Please use node --inspect instead.

jmaister avatar Jun 11 '17 08:06 jmaister

Ran into the same problem today.

theantoniorocha avatar Jul 06 '17 08:07 theantoniorocha

DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead.

oit63 avatar Jul 14 '17 07:07 oit63

same here , never used this, but fixing the path , this is what I get, hard first run !

axe-z avatar Jul 24 '17 14:07 axe-z

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 https://github.com/kiddkai/atom-node-debugger/issues/237

Redsandro avatar Aug 02 '17 18:08 Redsandro

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 :-)

vildmedtog avatar Aug 09 '17 13:08 vildmedtog

I think it isn't that simple. Otherwise I'd be able to inspect values when changing the command line manually.

Redsandro avatar Aug 11 '17 14:08 Redsandro

So the package is node v8 incompatible? Any news on this?

w0k3 avatar Aug 29 '17 12:08 w0k3

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.

nitrocode avatar Sep 11 '17 03:09 nitrocode

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?

tb01923 avatar Oct 30 '17 22:10 tb01923

+1 on Mac

skywinder avatar Nov 23 '17 10:11 skywinder

Facing same issue !! Please share if anyone got solution .

yatishdang avatar Dec 14 '17 12:12 yatishdang

+1 on Mac using v8.9.3

chucky86boy avatar Feb 13 '18 08:02 chucky86boy

+1 on Windows, using v8.9.3 Anyone found a solution?

AbdelrahmanHafez avatar Feb 20 '18 02:02 AbdelrahmanHafez

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.

AbdelrahmanHafez avatar Feb 21 '18 01:02 AbdelrahmanHafez

Same issue here. No fix still?

relief-melone avatar Apr 11 '18 17:04 relief-melone

@relief-melone Since I couldn't debug node 8 in atom, I use vscode and chrome dev tools now.

nitrocode avatar Apr 11 '18 23:04 nitrocode

+1 on ubuntu 16.04 and Node v8

BeardedDonut avatar Apr 16 '18 14:04 BeardedDonut

Any status on a fix? This issue renders the whole package worthless.

FrancisTurner avatar May 11 '18 02:05 FrancisTurner

Status??

dhowe avatar Jun 15 '18 10:06 dhowe