A simple Visual Studio Code extension to manage 'debugger' statements and breakpoints in your project.
You can install the Debugger Wipe extension from the Visual Studio Code Marketplace.
- Press
Ctrl+Shift+P
to open the command palette. - Type
Comment All Debuggers
and select the command. - This command will comment out all 'debugger' statements in your project and remove all existing breakpoints. The breakpoints are saved and can be restored later.
- Press
Ctrl+Shift+P
to open the command palette. - Type
Restore Debuggers
and select the command. - This command will restore all previously commented-out 'debugger' statements in your project. It will also restore any breakpoints that were saved when commenting out the debuggers.
- Press
Ctrl+Shift+P
to open the command palette. - Type
Remove All Debuggers
and select the command. - This command will remove all 'debugger' statements from your project.
To make using the Debugger Wipe more convenient, you can use the following keyboard shortcuts:
- Comment All Debuggers:
Ctrl+Shift+S
(Windows/Linux) orCmd+Shift+S
(macOS) - Restore Debuggers:
Ctrl+Shift+R
(Windows/Linux) orCmd+Shift+R
(macOS) - Remove All Debuggers:
Ctrl+Shift+D
(Windows/Linux) orCmd+Shift+D
(macOS)
To customize these shortcuts:
- Open Keyboard Shortcuts by pressing
Ctrl+K Ctrl+S
(orCmd+K Cmd+S
on macOS). - Search for
Comment All Debuggers
,Restore Debuggers
, orRemove All Debuggers
. - Click on the pencil icon next to the command and enter your desired keyboard shortcut.
If you encounter any issues, please report them at [issue tracker link] or contact support at [email protected].
This extension is licensed under npm-start.