Debug From a Stack Trace

intermediate
0.0 0 uses Aug 14, 2026 Coding & Development
Works with: ClaudeChatGPTGitHub Copilot
Save
The Prompt
I have this error:

[ERROR]

Relevant code:

[CODE]

Context: [CONTEXT]

Work through it in this order and show your reasoning:
1. What the error message literally means — decode it, do not paraphrase it
2. The three most likely causes, ranked, with what makes each likely or unlikely given the code
3. For the top cause: the exact line, and why it produces this specific message
4. The smallest fix that addresses the cause rather than the symptom
5. One check I can run in under a minute to confirm the diagnosis before I change anything

If the code shown is not enough to be sure, say exactly which file or value you need rather than guessing.
Variables — replace these:
[ERROR]· The error message or stack tra... [CODE]· The relevant code [CONTEXT]· When it happens, what changed...
Use with these AI models
Claude
Anthropic
Use Now
ChatGPT
OpenAI
Use Now
GitHub Copilot
GitHub
Use Now
Related Prompts
Refactor With the Constraints Stated
Coding & Development · code

A refactor that respects your language version and does not silently change behaviour.

0.0 0
Tests for the Cases That Actually Break
Coding & Development · code

Generates a test suite weighted toward boundaries and failure paths, not happy paths.

0.0 0
Code Review That Ranks by Severity
Coding & Development · code

A review that separates real bugs from taste, so you know what must be fixed.

0.0 0
Rate this Prompt
0.0 · 0 ratings
Log in to rate
Performance
0
Uses
0
Copies
0
Saves
0
Shares
Prompt Details
CategoryCoding & Development
Typecode
Difficultyintermediate
Tokens340
CreatedAug 14, 2026
UpdatedAug 14, 2026
Share