🐛
Systematic Bug Diagnosis
Get structured help diagnosing a bug you cannot figure out
prompt template
I have a bug I need help diagnosing. Here is the context: **What should happen:** [EXPECTED_BEHAVIOR] **What actually happens:** [ACTUAL_BEHAVIOR] **When it started:** [WHEN_DID_THIS_START — e.g., after a deploy, after updating a package, randomly] **Error message (if any):** ``` [PASTE_ERROR_HERE] ``` **Relevant code:** ``` [PASTE_CODE_HERE] ``` **What I've already tried:** - [THING_1] - [THING_2] Please: 1. List the 3 most likely root causes ranked by probability 2. For each cause, give me the exact diagnostic step to confirm or rule it out (a specific log to add, a query to run, a value to inspect) 3. Once we identify the cause, provide the fix with an explanation of why it works 4. Suggest a test or assertion I can add to prevent this bug from recurring Think step by step. Start with the most common/simple causes before considering exotic ones.
How to Use This Prompt
- 1Copy the prompt template above
- 2Paste into Claude, ChatGPT, or Cursor
- 3Replace [bracketed placeholders] with your specific project details
- 4Iterate on the AI output to refine and customize the results
More Debugging Prompts
Related debugging templates from the vault
🐛
Stack Trace Decoder and Fixer
Use this prompt to stack trace decoder and fixer with AI assistance
Intermediatedebuggingstack-trace
🐛
Systematic Memory Leak Hunter
Systematically identify and fix memory leaks in a production application using heap snapshots and allocation tracking
Advanceddebuggingmemory-leak
🐛
Network Request Waterfall Analyzer
Use this prompt to network request waterfall analyzer with AI assistance
Beginnerdebuggingnetwork
🐛
Memory Leak Detective
PROSystematically identify and fix memory leaks in Node.js or browser applications
Advanceddebuggingmemory-leak
You Might Also Like
Prompts from other categories that share similar tags
Keep Exploring the Vault