Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Debugger Toggle Shortcut for JavaScriptNew to Visual Studio Code? Get it now.
Debugger Toggle Shortcut for JavaScript

Debugger Toggle Shortcut for JavaScript

stephanebouget

|
1,523 installs
| (1) | Free
Quickly add or remove the 'debugger;' statement in your JavaScript or TypeScript files with a single command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Debugger Icon


Debugger Keyword Shortcut for JavaScript

Easily add or remove the debugger; statement in your JavaScript (js) / Typescript (ts) files with a simple shortcut.

✨ Features

  • Toggle behavior: The shortcut adds or removes debugger; on the selected line.
  • If the line already contains code, debugger; is inserted on a new line before the existing code.
  • Adds debugger; to the selected line with the shortcut.
  • Default shortcut: Ctrl+Alt+D (customizable in VS Code keybindings: Ctrl+K Ctrl+S).

🚀 Usage

  1. Place your cursor on the line you want to toggle the debugger; statement.
  2. Press Ctrl+Alt+D (or your custom shortcut).
  3. The extension will add or remove debugger; as needed:
    • If the line is empty, debugger; is added directly.
    • If the line contains code, debugger; is inserted on a new line above.
    • If debugger; is already present, it will be removed.

📄 License

vscode-debugger is under the MIT license. See the LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft