mrwnt10
mrwnt10

Reputation: 1415

VS Code debugger not running: Attribute 'program' does not exist

VS Code's debugger has suddenly stopped working, after months of use. I tried to use it on a file, linkedListIntersection.js, and received the following error:

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

My launch.json file is

{
  // 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"
    }
  ]
}

Answers on similar questions center on correcting the file specified, but I only have one file.

Additionally, I get the error above whenever I try to start a debugging session on any file. Oddly, the error always refers to linkedListIntersection.js, even when I try to initiate debugging while in another file.

Upvotes: 4

Views: 3863

Answers (3)

Nir Tzezana
Nir Tzezana

Reputation: 2342

I tried all the solutions stated here, sadly none worked.
What worked eventually was deleting VSCode, including all of the extensions and reinstalling it.

Upvotes: 0

Yangang
Yangang

Reputation: 96

Just delete launch.json file from .vscode.It works for me.

Upvotes: 5

mrwnt10
mrwnt10

Reputation: 1415

I managed to solve this problem by deleting the linkedListIntersection.js launch.json file.

Upvotes: 2

Related Questions