Node.JS debugging works but on breakpoints it still says "Breakpoint set but not yet bound"
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".
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?
