Search & Debug

Search & Debug

Turn native VS Code search results into line breakpoints in one click.

Turn native VS Code search results into line breakpoints in one click.

Category

May 15, 2024

VS Code Extension

VS Code Extension

Services

May 15, 2024

Debugging Tool

Debugging Tool

Client

May 15, 2024

Self

Self

Year

May 15, 2024

2026

2026


Search & Debug. Search. Target. Debug.

Find the code. Set the breakpoints. Start debugging.
Turn existing VS Code Search results into breakpoints without opening every file.

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.


Illustrative VS Code mock showing the all-results toolbar button and four breakpoints across two sample files


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.


Illustrative VS Code mock showing the file toolbar button and breakpoints in auth.ts only

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. This is a pre-Marketplace preview.

  1. Download the installable VSIX.

  2. Open VS Code and press Ctrl+Shift+X (macOS: Cmd+Shift+X).

  3. Open the Extensions panel's three-dot menu and choose Install from VSIX...

  4. Select search-and-debug-0.1.3.vsix and reload the window if prompted.

  5. Open a local folder, press Ctrl+Shift+F (macOS: Cmd+Shift+F), and run a text search.

  6. 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
code --install-extension search-and-debug-0.1.3.vsix
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

Download

Contents

Install Search & Debug (.vsix)

Ready-to-install v0.1.3 extension.

Download source package (.zip)

Source, documentation, artwork, tests and packaging script, without generated downloads.

Browse source code

Complete repository on GitHub.

Download repository ZIP

Snapshot of the entire main branch, including packaged downloads.

SHA-256 checksums

Verify the VSIX and source package before using them.


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
git clone https://github.com/Github-MuhammadNiazi/search-and-debug.git
cd search-and-debug
npm test
npm run check
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
python scripts/package.py
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.

Let's talk

Time for me:

Email:

work.muhammadniazi@outlook.com

Socials:

Reach out:

Made with 🍎

© Copyright 2026

Let's talk

Time for me:

Email:

work.muhammadniazi@outlook.com

Socials:

Reach out:

Made with 🍎

© Copyright 2026

Create a free website with Framer, the website builder loved by startups, designers and agencies.