VS Code 调试器未运行:属性“程序”不存在

mrw*_*t10 4 visual-studio node.js

使用几个月后,VS Code 的调试器突然停止工作。我尝试在文件 linkedListIntersection.js 上使用它,并收到以下错误:

Attribute 'program' does not exist ('/path/to/linkedListIntersection.js'). 
Run Code Online (Sandbox Code Playgroud)

我的 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",
      "program": "${workspaceFolder}/path/to/linkedListIntersection.js"
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

类似问题的答案集中在更正指定的文件上,但我只有一个文件。

此外,每当我尝试对任何文件启动调试会话时,都会收到上述错误。linkedListIntersection.js奇怪的是,即使我尝试在另一个文件中启动调试,错误也总是指向。

小智 5

只需从 中删除launch.json文件即可.vscode。它对我有用。