为什么Node.js调试无法在VS代码中运行?

时间:2020-04-23 10:49:26

标签: node.js visual-studio-code

在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"
    }
  ]
}

为什么会出现此错误?我该如何解决?

0 个答案:

没有答案