VS Code Cheat Sheet/Basic Node.js launch.json

Minimal launch config for debugging a Node script.

Section: Settings, Debugging, and Git

Basic Node.js launch.json

json
json
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug current file",
      "program": "${file}"
    }
  ]
}

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Settings, Debugging, and Git
Start debugging
Launch the current debug configuration.
OpenIn sheettextsame section
Open Settings UI
Search and edit settings through the UI.
OpenIn sheettextsame section
Enable format on save
Format files automatically when saved.
OpenIn sheetjsonsame section
Open Source Control view
Jump to the SCM panel quickly.
OpenIn sheettextsame section
Open Command Palette
Run any VS Code command quickly.
Delete line
Remove the current line quickly.