Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Debugger not running? #238

Open
saadq opened this issue Aug 1, 2017 · 8 comments
Open

Debugger not running? #238

saadq opened this issue Aug 1, 2017 · 8 comments

Comments

@saadq
Copy link

saadq commented Aug 1, 2017

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
Copy link

Redsandro commented Aug 2, 2017

Possibly related to #234 and #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
Copy link

@saadq Did you ever find a fix?

@saadq
Copy link
Author

saadq commented Nov 16, 2017

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
Copy link

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
Copy link

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

@doublejosh
Copy link

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
Copy link

dhowe commented Jun 15, 2018

Any fix for this?

@scholtes1953
Copy link

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.

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

No branches or pull requests

7 participants