【发布时间】:2019-08-09 06:43:11
【问题描述】:
我正在尝试为我的 node.js 应用程序以及所有命令和代码使用 vs 代码调试器,但是当我应用断点时,它会返回到 nodejs 和 npm 文件的主文件和功能,而不是返回一步一步到服务,然后存储,刹车点不能正常工作,我的 api 任何机构都可以提供帮助
{
// 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": [
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}"
},
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/app/app.js"
},
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"debug"
],
"port": 9229
},
{
"type": "node",
"request": "launch",
"name": "My Debugger",
"program": "${workspaceFolder}\\index.js"
}
]
}
【问题讨论】:
标签: node.js debugging visual-studio-code