I'm using the following launch.json
to debug my container:
{
// 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",
"request": "attach",
"type": "node",
"restart": true,
"sourceMaps": true,
"internalConsoleOptions": "neverOpen",
"remoteRoot": "/home/node/dist",
"localRoot": "${workspaceFolder}/dist",
"skipFiles": [
// Ignore node_modules folder when debugging.
"${workspaceFolder}/.yarn/**",
// Ignore NodeJS when debugging.
"<node_internals>/**/*.js"
],
"outFiles": ["${workspaceFolder}/dist/**/**.js"]
}
]
}
I'm running a NestJS application (it's compiling TypeScript and running using NodeJS). My package.json
script is nest start --debug 0.0.0.0:9229 --watch
.
The debugger attaches successfully and I get to debug normally, but when I enable exception breakpoints, it catches exceptions within the packages (yarn cache but node-modules, essentially). I wish to skip these. Without PnP, it works fine (simply skip node internals and node modules), but with PnP, I'm not sure what I'm supposed to do.