Toggle debug statements in the LeetCode editor with configurable keyboard shortcuts.
Users
3
store count
Rating
0.0 / 5
unchanged in 30 days
Ratings
0
total ratings
Store rank
#320K
#253K among extensions
Version
1.3.0
updated 11 Oct 2026
About LeetCode Debug Toggle
Comment and uncomment your debug lines on LeetCode with one keyboard shortcut.
Before you submit, press Alt + P to comment out the lines you added for tracing. If the submission fails, press Alt + O to bring them back. No more hunting through your code line by line. Save up to 20 seconds on each submission.
Features
One keypress to comment, another to restore
Keeps your indentation, cursor position and folded code
Handles statements that span multiple lines
Keeps your code valid when one of those lines is the only line in a block
Change both shortcuts any time from the extension popup
Language support
Works with common LeetCode languages. If you switch to a language that is not supported, the extension shows a message and leaves your code unchanged. Details are on GitHub.
Limitations
Only lines that begin with a supported output statement are detected. Uncomment restores all matching commented lines in the file, including ones you commented yourself.
Availability
Works on leetcode.com. Tested on Windows. Unofficial extension, not affiliated with or endorsed by LeetCode. Open source: github.com/umergulkaleem/LeetDebug
Privacy
Runs only on leetcode.com. Saves your two shortcut preferences locally using Chrome storage. Listens for key presses only to detect your shortcuts and does not record what you type. Does not collect or transmit your code or any personal data.