Xameer
Xameer

Reputation: 31237

Non consistent bug - debugger not starting in VS code

Steps to Reproduce:

  1. Open a node project
  2. Press F5 or Click play button from debugger pane

Does this issue occur when all extensions are disabled?: Yes

A few times I have noticed that the debugger does not start in Visual Studio. Anyone know any fix to this?

Upvotes: 1

Views: 667

Answers (1)

Csaba
Csaba

Reputation: 419

Do you have a launch.json file? It should be at .vscode/launch.json With the following format:

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

You can find more information here: https://code.visualstudio.com/Docs/editor/debugging

Upvotes: 1

Related Questions