今天我的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
解决这个问题的任何指示都会很有帮助
谢谢, 圣