kiddkai / atom-node-debugger

A Nodejs Debugger For Atom
MIT License
265 stars 75 forks source link

Debugger not running? #238

Open saadq opened 6 years ago

saadq commented 6 years ago

I'm having issues getting the debugger to run. Breakpoints are working, but trying to do Start Resume or Start Active File doesn't seem to run the file. Steps to reproduce my issue:

  1. Open a JS file.
  2. Start the debugger with Ctrl+F5
  3. Add a breakpoint with F9
  4. Run the debugger with F5 or with the Play button on the top right.

When I do the last step, all that happens is this in the console:

Connection attempt 1 to node process on 127.0.0.1:5858 failed. Will try again in 500.
(node:11975) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.

I am on macOS Sierra Version 10.12.2. Any help would be appreciated.

screen shot 2017-08-01 at 8 11 02 am

Redsandro commented 6 years ago

Possibly related to https://github.com/kiddkai/atom-node-debugger/issues/234 and https://github.com/kiddkai/atom-node-debugger/issues/237

Try explicitly setting the path, e.g. --inspect=5858. Not sure you'll get it to work though. I can only inspect variables on node 4, not on node 6+.

robertwbradford commented 6 years ago

@saadq Did you ever find a fix?

saadq commented 6 years ago

Unfortunately no, I've just been debugging node with Chrome lately. One thing you may want to try instead is xatom-debug + xatom-debug-nodejs as an alternative, I remember it working for me when I tried.

guerillagorilla commented 6 years ago

I had this same issue, but after manually setting the Node Path (/usr/local/bin/node), I can now use the debugger.

atom--node-debugger

robertwbradford commented 6 years ago

@guerillagorilla Thanks, that did the trick for me too.

doublejosh commented 6 years ago

This allows node to run and actually start the app, but the connection is still never made to the debugger so no data ever comes back in the panel ;(

dhowe commented 6 years ago

Any fix for this?

scholtes1953 commented 6 years ago

It looks to me like this code relies on the deprecated (since node 7.7) internal _debugger.js. The new approach is to use the node inspector.