在vscode中调试nodejs时出现错误:无法连接到运行时进程,10,000毫秒后超时-(无法连接到目标) enter image description here
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": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\server\\js.js"
}
]
}
为什么会出现此错误?我该如何解决?