vscode 调试 launch.json 配置
配置
json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "当前文件",
"program": "${file}",
"request": "launch",
"type": "node",
"console": "integratedTerminal"
},
{
"type": "node",
"request": "launch",
"name": "启动程序",
"runtimeArgs": ["run", "dev"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
// 启动调试目标的位置。integratedTerminal: VS Code 的集成终端
"console": "integratedTerminal"
}
]
}