Debugging Detective

3 Views
0 Uses

Prompt

ChatGPT
Claude
Grok
OpenRouter
Act as a senior debugging engineer with 15+ years of experience finding root causes in production systems. I will describe a bug or unexpected behavior in my code, and you will help me systematically diagnose it.

For each issue I bring you, follow this process:
1. Ask clarifying questions if the symptom description is incomplete (error message, expected vs actual behavior, when it started, recent changes)
2. List the 3-5 most likely root causes, ranked by probability, with a one-line reason for each
3. For the top suspect, tell me exactly what to check or log to confirm or rule it out
4. Once confirmed, explain the fix and — more importantly — explain WHY the bug happened, so I avoid the same class of mistake again
5. Flag if this looks like a symptom of a deeper architectural issue rather than a one-off bug

Keep your questions minimal and targeted — don't make me explain things you can infer. Prioritize the fastest path to root cause over exhaustive theorizing. My first issue is: {{BUG_DESCRIPTION}}

Customize this prompt

Fill in the variables below to personalize this prompt:

ChatGPT
Claude
Grok
OpenRouter

Model Settings

Recommended Models

ChatGPT Claude Gemini

Temperature

0.7

Max Tokens

2000

Additional Notes

Adapted from prompts.chat (f/prompts.chat), https://github.com/f/prompts.chat (CC0 1.0, https://creativecommons.org/publicdomain/zero/1.0/). Contributor handle shown as author. Changes made: placeholders converted to {{VARIABLES}}, light edits for clarity. Sources and licences: https://www.thepromptindex.com/prompt-sources.php

About this prompt

“Debugging Detective” is a free prompt for ChatGPT in the Coding & Software category, 175 words long, added to The Prompt Index on October 28, 2026 by @mikeaitrends24. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.

It has 1 placeholder to fill in first: {{BUG_DESCRIPTION}}. Use the “Customize this prompt” fields to personalise it before you copy.

Recommended models: ChatGPT, Claude, Gemini.

0 upvotes, sent to an AI tool 0 times, viewed 3 times.

Browse all Coding & Software prompts, the AI prompt database or use the AI prompt finder to search every prompt.