我正在使用以下内容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": "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"]
}
]
}
我正在运行一个 NestJS 应用程序(它正在编译 TypeScript 并使用 NodeJS 运行)。我的 package.json
脚本是nest start --debug 0.0.0.0:9229 --watch
.
调试器成功附加,我可以正常调试,但是当我启用异常断点时,它会捕获包中的异常(本质上是纱线缓存但节点模块)。我想跳过这些。没有 PnP,它可以正常工作(只需跳过节点内部和节点模块),但使用 PnP,我不确定我应该做什么。