A powerful VSCode extension that allows users to quickly add breakpoints to all lines found in search results, streamlining the debugging process.
- Add Breakpoint to Current Line: Quickly add a breakpoint to the line where your cursor is positioned
- Add Breakpoints to Search Results: Automatically add breakpoints to all lines containing search results
- Clear All Breakpoints: Remove all breakpoints from the current file
- Smart File Type Detection: Only allows breakpoints in debuggable file types
- Status Bar Integration: Shows breakpoint options when search is active
The extension provides the following commands accessible via Command Palette (Ctrl+Shift+P
):
Breakpoint Tool: Add Breakpoint to Current Line
Breakpoint Tool: Add Breakpoints to Search Results
Breakpoint Tool: Clear All Breakpoints in File
Ctrl+Shift+B
(Mac:Cmd+Shift+B
) - Add breakpoint to current lineCtrl+Shift+Alt+B
(Mac:Cmd+Shift+Alt+B
) - Add breakpoints to search results (when search widget is visible)Ctrl+Shift+Alt+C
(Mac:Cmd+Shift+Alt+C
) - Clear all breakpoints in current file
- Open a file in VSCode
- Use
Ctrl+F
to open the search widget - Enter your search term
- Use
Ctrl+Shift+Alt+B
or the Command Palette to add breakpoints to all search results - Start debugging to see breakpoints in action
- Position your cursor on the desired line
- Use
Ctrl+Shift+B
or the Command Palette to add a breakpoint
Right-click in any editor to access breakpoint commands through the context menu.
The extension supports breakpoints in common debuggable file types:
- JavaScript/TypeScript (
.js
,.ts
,.jsx
,.tsx
) - Python (
.py
) - Java (
.java
) - C# (
.cs
) - C/C++ (
.cpp
,.c
,.cc
,.cxx
) - Go (
.go
) - Rust (
.rs
) - PHP (
.php
) - Ruby (
.rb
) - Swift (
.swift
) - Kotlin (
.kt
) - And many more...
When the search widget is visible, a status bar item appears showing "Add Breakpoints" - click it to quickly add breakpoints to search results.
- Node.js
- VSCode
- TypeScript
- Clone the repository
- Run
npm install
- Open in VSCode
- Press
F5
to launch Extension Development Host
npm run compile
vsce package
Just install the .vsix
├── src/
│ ├── extension.ts # Main extension entry point
│ ├── breakpointManager.ts # Breakpoint creation and management
│ └── searchDetector.ts # Search result detection logic
├── package.json # Extension manifest
├── tsconfig.json # TypeScript configuration
└── .vscode/
└── launch.json # Debug configuration
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License
- Initial release
- Add breakpoints to current line
- Add breakpoints to search results
- Clear all breakpoints in file
- Context menu integration
- Keyboard shortcuts
- Status bar integration