使用 Visual Studio Code 版本 1.13.0,当启动一个 Node 调试 test2.js 时,Node 版本为 0.12,以下是相关配置。我可以通过调试,从 vscode 得到响应:
但是当节点版本为V8.0且发出“node debug test2.js”时,使用VSCODE进行调试的结果如下:
有任何想法吗?我正在使用“attach”,配置如下:
Debugging with legacy protocol because it was detected.
但是当节点版本为V8.0且发出“node debug test2.js”时,使用VSCODE进行调试的结果如下:
Debugging with legacy protocol because Node.js version could not be determined (Error: read ECONNRESET)
有任何想法吗?我正在使用“attach”,配置如下:
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
"port": 5858
}
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}"
}
]