在根目录新建 .vscode
目录,该目录下新建 launch.json
文件,文件内容如下:
{
"version": "0.2.0",
"configurations": [
{
"name": "调试",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}/backend",
"runtimeExecutable": "npm",
"windows": { "runtimeExecutable": "npm.cmd" },
"runtimeArgs": [ "run", "debug" ],
"console": "integratedTerminal",
"protocol": "auto",
"restart": true,
"port": 9999
}
]
}
网友评论