All AI prompts
Coding & Dev
Debug an error like a senior engineer
Root cause, fix, and prevention — not just a patch.
The prompt
I'm getting this error: ``` [PASTE ERROR / STACK TRACE] ``` Relevant code: ``` [PASTE CODE] ``` Walk me through: (1) what the error actually means, (2) 3 most likely root causes ranked by probability, (3) how to confirm each, (4) the minimal fix, (5) how to prevent this class of bug in future.
Paste it into ChatGPT, Claude, Gemini or Midjourney and replace anything in [SQUARE BRACKETS] with your own details.
Related prompts
More Coding & Dev prompts from the library.
- Coding & DevBuild & explain a regex from plain EnglishWith test cases you can paste into a regex tester.
- Coding & DevSQL query from plain EnglishIncludes schema questions and explains the plan.
- Coding & DevGenerate unit tests for any functionHappy path, edge cases, and failure modes.
- Coding & DevPerfect conventional commit messageFollows conventional-commits, with body and footer.