vscode调试node(npm命令)

调试npm run start
  • 内容
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "启动程序",
      "cwd": "${workspaceRoot}",
      "runtimeExecutable": "npm",
      "runtimeArgs": ["run","start"],
      "autoAttachChildProcesses": true,
      "stopOnEntry": false
    }
  ]
}
  • 放置于项目根路径


你可能感兴趣的:(vscode调试node(npm命令))