0

今天我的 VSCode 升级到了1.2.0,从那时起 VSC 调试器就失败了。因此,我们根据文档添加了"protocol": "inspector". 但现在我们得到另一个错误说Ensure Node was launched with --inspect. Cannot connect to runtime process, timeout after 10000 ms

我现在的launch.json样子

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": "attach",
    "name": "Attach",
    "protocol": "inspector",
    "port": 9229
  },
  {
    "type": "node",
    "request": "launch",
    "protocol": "inspector",
    "name": "Launch Program",
    "program": "${workspaceFolder}/test"
  }
]
 }



VSCode Version: Version 1.20.0 (1.20.0)
Node Version: 8.1.2

解决此问题的任何指示都会有很大帮助

谢谢,桑

4

0 回答 0