You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to debug a nestjs application, written in typescript. And I am attempting to attach to the process, so I can hit breakpoints.
The breakpoints become unbound immediately upon attaching to the process.
{
// 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": "Attach to Nest",
"type": "node",
"request": "attach",
"port": 9229,
"restart": true,
"skipFiles": [
"<node_internals>/**"
],
"trace": true,
}
]
}
I know the debugger is attaching to the process because I see this emitted in the console
Debugger listening on ws://localhost:9229/d8180938-a9d6-46d8-81a3-814a66b98348
Debugger listening on ws://localhost:9229/d8180938-a9d6-46d8-81a3-814a66b98348
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
It looks like you should set "cwd": "${workspaceFolder}/workspace". Nest.js provides Webpack paths, which are relative, so we need to know where to resolve them from. In your case, it looks like you have it in a nested directory, which requires this adjustment.
Connor, your advice was spot on, and solved the problem. I've seen you reply to lots of other issues as well, in my search for an answer to my particular problem.
Can you clue me into how you solved it so quickly? None of the resources I found online mentioned that property.
In any case, I really appreciate your swift response. (they don't pay you enough)
I am trying to debug a nestjs application, written in typescript. And I am attempting to attach to the process, so I can hit breakpoints.
The breakpoints become unbound immediately upon attaching to the process.
Here is the trace file
vscode-debugadapter-cb19f722.json.gz
Here is my Launch.json
I know the debugger is attaching to the process because I see this emitted in the console
My angular.json file has this...
Any help is appreciated, I've googled unbound breakpoints, and tried many things. None of which made any difference.
Thanks,
John Schank
The text was updated successfully, but these errors were encountered: