4

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.

3 Answers 3

5

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

Sign up to request clarification or add additional context in comments.

Comments

2

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

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.