Prompt template

Reusable prompt for ChatGPT, Claude, and Promptlight

Save this prompt in Promptlight if you need it more than once. It is built to be copied fast, customized with your context, and reused across models without rewriting the same instructions every time.

Prompt template

Pragmatic Debugger

Debugging prompt for diagnosing the real cause of a bug before fixing it. Prioritizes targeted logs, clarifying questions, and surgical changes over random patching.

debugging
problem-solving
methodology
development
troubleshooting
system-prompt
bug-fixing

Best for

  • developers chasing root causes under time pressure
  • software engineers and technical founders

Use this when

  • you need targeted diagnosis instead of random fixes
  • you need a repeatable engineering prompt for day-to-day work

Expected outcome

  • A root-cause-first debugging plan with faster iteration loops
# Pragmatic Debugger

Pragmatic Debugger is a debugging prompt for situations where random fixes are making the problem worse. It pushes the assistant to diagnose first, add focused instrumentation, ask for the right missing evidence, and make the smallest fix that actually solves the root cause.

## Best For

- Reproducible bugs with unclear root cause
- Regressions where multiple systems might be involved
- Pair-debugging sessions where you can provide logs and test steps
- Cases where you want fewer guesses and more evidence

## How To Use It

1. Share the bug, symptoms, and any recent changes.
2. Let the model request logs, traces, or reproduction steps before patching.
3. Ask it to explain the most likely root cause before proposing fixes.
4. Keep the final code change small until the cause is verified.

## Prompt Template

Let's approach this pragmatically. Prioritise finding the problem, so that we can apply a targeted surgical fix. As opposed to applying fixes randomly. This will prevent our fixes from having unwanted side effects. Please add any logs if you need to, and do not hesitate to ask me to copy them with instructions for me to replicate certain actions so you can coordinate these with the logs in an attempt to diagnose the problem. Never hesitate to stop and ask me a question, or ask for anything, at any point. I would much rather you stop and ask me than assume something and get it wrong. If you need to write in a new markdown file, create one with a new name that is not projectplan.

## Expected Behavior

- Diagnose before changing code
- Ask for evidence when confidence is low
- Add temporary logs only where they can disambiguate the cause
- Prefer surgical fixes over wide refactors

## Limitations

This prompt works best when you can provide logs, reproduction steps, or a code sample. It does not replace a real debugger, trace tooling, or a controlled test environment.

Customization tips

Turn this into a reusable workflow, not a one-off prompt

  • Replace the generic context with your stack, domain, or customer segment before you run it.
  • Add constraints for tone, output format, and level of detail so the model matches your workflow.
  • Paste a real example input or diff to get results that are grounded instead of generic.
Published November 16, 2025

Want to save this prompt for later?

Get Promptlight to instantly access all your saved prompts with a keyboard shortcut.

Try Promptlight UI live

Type, search, and enhance right here. It’s interactive.

Search mode

Find the right prompt in milliseconds.

Switch via Promptlight icon or ⇧ + Tab

  • Fuzzy search across titles and body text.
  • Favorites and file paths at a glance.
  • Keyboard-first: ↑↓ to navigate, ⏎ to copy.

A prompt library that fits how you already work

Promptlight combines fast local search, portable Markdown storage, and one-click enhancement so your best prompts stay useful instead of getting lost in chats.

Lightning-Fast Search

Fuzzy search through your prompts instantly. Find what you need in milliseconds with intelligent matching.

Enhancer Mode

Turn rough prompts into clear, detailed, or creative versions with one click.

Keyboard-First Workflow

Every action in Promptlight is keyboard-first. Launch with a shortcut, browse with a shortcut, copy with a shortcut.

Private & Secure Data

Your prompts are stored locally on your machine. No need to worry about your data being stored online. Your data is always private and secure.

Edit with Any App

Your prompts are plain markdown files. Edit them in VS Code, Obsidian, or any editor—changes sync instantly both ways.

Favorite Prompts

Mark your favorite prompts to pin them for quick access. No need to search for them every time.

Get Started Today

Download Promptlight for free, or send yourself the link if you're browsing on mobile and want to install it later on your Mac.

Download for macOS

Version 1.2.1 • 17.8 MB • macOS 10.13 (High Sierra) or later