Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging not working #26

Open
Kesymaru opened this issue May 31, 2017 · 6 comments
Open

Debugging not working #26

Kesymaru opened this issue May 31, 2017 · 6 comments

Comments

@Kesymaru
Copy link

Kesymaru commented May 31, 2017

Hello.

I have installed and configured to debug my project on node.js, the configuration is:

Binary Path: "C:\Program Files\nodejs\node.exe"
Port: 8000
Source Script: C:\Users\myUser\Documents\Project\server\bin\project
Environment Variables: NODE_ENV=development

The problem is that the server runs correctly, when the project is running correctly the breakpoints are not working, adding a new breakpoint and tested sending a request to the server and the breakpoint is not fired for some reason.

The xatom-debug shows a status "Node.js: Debugger Resumed"

On the node console the output is:

Debugger attached.
Debugger listening on port 5865.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
    chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:5865/fc0912a5-ffca-43d4-a90b-d12e0fba2390
Debugger attached.

Also tried to debug the project using the chrome inspector and the same problem happened.

I would like to know if i am missing something on my setup or if there is another way to debug a project (node + express + restful api), i have been using webstorm node debugger for the same project with the same setup and it works on webstorm.

@dhruvr
Copy link

dhruvr commented Jun 5, 2017

@Kesymaru It Happened with me, because already a node server was running and executing my script in the background. Close your debugger and check if server is already running?

@Kesymaru
Copy link
Author

Kesymaru commented Jun 5, 2017

@dhruvr i tested closing my debugger and run it again, even killing the debugger process from the task manager. the server runs correctly after killed it and run it again, but the debugger does not work.

@dhruvr
Copy link

dhruvr commented Jun 6, 2017

@Kesymaru Are you starting the debugger and server both. The debugger is supposed to start your node process?

@Kesymaru
Copy link
Author

Kesymaru commented Jun 6, 2017

@dhruvr yeah the debugger runs the main script of my project /server/bin/project so basically when i run the debugger it starts my server project

@Kesymaru Kesymaru reopened this Jun 16, 2017
@Kesymaru
Copy link
Author

Does anyone know how to make the debugger work, starting the app and then debugging it?

It is possible to attach the debugger to an already stated app?

I really want to make the debugger work so i can use atom as my daily editor.

@willyelm
Copy link
Owner

Hi @Kesymaru, are you using a nodejs right away or you have it compiled with a custom sourcemaps directory?

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

No branches or pull requests

3 participants