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

Node.JS debugging works but on breakpoints it still says "Breakpoint set but not yet bound" #93

Open
kwoxer opened this issue Apr 23, 2020 · 0 comments

Comments

@kwoxer
Copy link

kwoxer commented Apr 23, 2020

I have read all the different threads about that issue. But none of the answers work. So maybe I need another solution. But I'm pretty new to Node.JS so it's kind of difficult for me to get my issue.

I would like to use debugging in my Node.JS project build from React and Apollo.

I have running the React App script via yarn start. And as well the server with yarn start.

Now I created the launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Node 1",
            "type": "node",
            "request": "attach",
            "processId": "${command:PickProcess}",
            "skipFiles": [
                "<node_internals>/**"
            ]
        },
        {
            "name": "Node 2",
            "type": "node",
            "protocol": "inspector",
            "request": "attach",
            "stopOnEntry": false,
            "port": 9229,
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "\\src",
            "sourceMaps": true
        },
      
        {
            "name": "Node 3",
            "type": "node",
            "request": "attach",
            "restart": true,
            "port": 9229
        }
    ]
}

But none of these are working.

At least the Node 1 debug config seem to work somehow. This is the listening message on my server:

Server is running on http://localhost:4000
Debugger listening on ws://127.0.0.1:9229/7b6d2864-42c2-4a2f-8bfe-14dc1ad16cd3
For help, see: https://nodejs.org/en/docs/inspector

But as the title says, I get the message "Breakpoint set but not yet bound".

Breakpoint set but not yet bound

This is wondering me as everything else seem to work. But that message is not going away. What can I do to get debugging working on that project?

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

1 participant