用于反应应用程序调试的VSCode(节点版本8.1.2)

时间:2018-02-09 17:11:40

标签: node.js reactjs visual-studio-code vscode-settings vscode-debugger

今天我的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

解决这个问题的任何指示都会很有帮助

谢谢, 圣

0 个答案:

没有答案