【问题标题】:VS Code debugger not running: Attribute 'program' does not existVS Code 调试器未运行:属性“程序”不存在
【发布时间】:2019-04-07 11:40:25
【问题描述】:

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

Attribute 'program' does not exist ('/path/to/linkedListIntersection.js'). 

我的 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"
    }
  ]
}

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

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

【问题讨论】:

    标签: node.js visual-studio


    【解决方案1】:

    我尝试了此处所述的所有解决方案,遗憾的是没有一个有效。
    最终起作用的是删除 VSCode,包括所有扩展并重新安装。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

        我设法通过删除linkedListIntersection.js launch.json 文件解决了这个问题。

        【讨论】:

          猜你喜欢
          • 2022-10-14
          • 1970-01-01
          • 2021-02-10
          • 2020-10-18
          • 2019-04-06
          • 2016-09-04
          • 1970-01-01
          • 2017-05-05
          • 2021-05-26
          相关资源
          最近更新 更多