Find the code. Set the breakpoints. Start debugging.
Turn existing VS Code Search results into breakpoints without opening every file.
Install extension |
See it in action |
Downloads |
Build from source
Why Search & Debug?
When tracing a method across a large codebase, setting breakpoints one by one is repetitive. Search & Debug uses the results already in your native Search panel to place source line breakpoints in a single action. No new search interface, no source edits, and no network connection required at runtime.
| Action |
What it does |
| All results |
Place breakpoints on matching lines across the current search results. |
| Selected file |
Place breakpoints on every matching line in one file from the current search. |
| Undo last batch |
Remove plain, unchanged breakpoints created by the most recent batch in this session. |
Existing breakpoints are preserved, multiple matches on the same line are deduplicated, and the current search filters are respected. Large batches of 200 or more new breakpoints require confirmation.
See it in action
01. Add breakpoints to all search results
Run a normal workspace search and click the red breakpoint-plus icon in the Search toolbar. Each matching source line receives a breakpoint, unless one is already present.

02. Add breakpoints to a single file
Select a file heading (or a result inside that file), then click the red file breakpoint icon. If the selection cannot be identified, choose the file from the picker. Other files remain untouched.

Both illustrations are designed mocks with synthetic sample code. They are not screenshots of a running extension. Breakpoint markers appear in editor gutters, not as custom icons on native Search result rows. Toolbar placement can vary with the available width.
Quick start
Requirements: VS Code 1.95 or newer (declared minimum), and a local workspace containing saved text files.
Install Search & Debug from the VS Code Extensions panel, or use the following manual installation steps.
- Download the installable VSIX.
- Open VS Code and press
Ctrl+Shift+X (macOS: Cmd+Shift+X).
- Open the Extensions panel's three-dot menu and choose Install from VSIX...
- Select
search-and-debug-0.1.3.vsix and reload the window if prompted.
- Open a local folder, press
Ctrl+Shift+F (macOS: Cmd+Shift+F), and run a text search.
- Wait for results, then use one of the two red Search toolbar buttons. If the sidebar is narrow, check its overflow menu.
Alternatively, from a terminal in the download directory with the code command on PATH:
code --install-extension search-and-debug-0.1.3.vsix
If you installed the older Search Breakpoints local preview, uninstall it first. Search & Debug has a new extension identifier, so the old and new versions otherwise coexist.
Keyboard shortcuts
| Action |
Windows / Linux |
macOS |
| Add all search breakpoints |
Ctrl+Alt+B |
Cmd+Option+B |
| Add selected-file breakpoints |
Ctrl+Shift+Alt+B |
Cmd+Shift+Option+B |
| Undo last batch |
Ctrl+Alt+U |
Cmd+Option+U |
For the file shortcut, focus a file heading or result in the Search panel. The commands are also available in the Command Palette under Search & Debug when applicable. Standard editor F9 behavior is unchanged. Shortcuts can be customized in VS Code.
Downloads
Development
The extension is written in plain JavaScript (CommonJS), with no npm runtime dependencies and no compilation step.
git clone https://github.com/Github-MuhammadNiazi/search-and-debug.git
cd search-and-debug
npm test
npm run check
Use Node.js 18 or newer for the standalone tests. Open the repository in VS Code and press F5 to launch the Extension Development Host. Open a separate local sample workspace in that window to test the Search commands. Python 3 is only required if you want to rebuild the download packages:
python scripts/package.py
The script creates the VSIX, curated source ZIP and checksums in downloads/. Alternatively, install the VS Code extension packaging CLI and use its standard packaging process for Marketplace distribution.
Compatibility & privacy
- Works with native text search results in local saved text files. Remote and virtual workspaces, notebooks and unsaved untitled files are not supported. AI search is not supported.
- Uses internal VS Code search commands to read current results and selection. These commands and their formats may change across VS Code releases. Refresh stale search results before applying breakpoints. The debugger ultimately determines which lines can bind executable breakpoints.
- Copy-based operations temporarily replace the system clipboard and restore its prior plain text. Rich text, images and other formats cannot be restored by the VS Code API. Avoid copy-based actions when those clipboard formats matter.
- Undo history is session-only. Conditional, disabled and log breakpoints are not removed by undo. No telemetry, external runtime dependencies or network calls are implemented.
- The declared VS Code version range is not a tested compatibility matrix. Automated parser and mocked command tests are included. The initial release has also been live tested.
Contributing
Found a bug or have a suggestion? Open an issue. Include your VS Code version, platform, search type and steps to reproduce. Use synthetic sample code rather than sharing private project files. Contributions are welcome under the MIT license.
License
MIT. Copyright (c) 2026 Muhammad Niazi. See the license for attribution requirements and warranty terms.
Search. Target. Debug.
Created by Muhammad Niazi.