Debug Cleanup Assistant
Easily detect and remove debug statements from your code in VS Code. Keep your production code clean and free from console.log, debugger, alert, TODO comments, and more, across multiple languages like JavaScript, TypeScript, JSX, TSX, Python, Java, C#, PHP, and Go.
Creator: Arno Pretorius
Features
- Scan for debug statements automatically on save.
- Tree View lists all files with debug lines.
- Remove individual debug lines via context menu in Tree View.
- Remove all debug statements in the current file with one command.
- Supports multiple languages: JavaScript, TypeScript, JSX, TSX, Python, Java, C#, PHP, Go.
- Preview lines that will be removed before deletion.
- Configurable severities: Choose which debug statements to remove (
Error, Warning, Information).
Requirements
- VS Code 1.80 or higher
- Works on Windows, macOS, and Linux
- Optional: Create a
.debugcleanupignore file in your workspace to exclude specific debug patterns
Extension Settings
This extension contributes the following settings:
debugCleanup.removeSeverities - Array of debug severities to remove (Error, Warning, Information).
Default: ["Error","Warning"]
debugCleanup.confirmBeforeRemove - Ask for confirmation before removing debug lines.
Default: true
debugCleanup.showPreview - Show preview of debug lines before removal.
Default: true
Example .debugcleanupignore file:
console.info:Warning
alert:Error
#� �D�e�b�u�g�C�l�e�a�n�U�p�E�x�t�e�n�s�i�o�n�
�
�#� �D�e�b�u�g�C�l�e�a�n�U�p�E�x�t�e�n�s�i�o�n�
�
�#� �D�e�b�u�g�C�l�e�a�n�U�p�E�x�t�e�n�s�i�o�n�
�
�#� �D�e�b�u�g�C�l�e�a�n�U�p�E�x�t�e�n�s�i�o�n�
�
�
| |