CodingSaves ~45 minutes

Debug a specific runtime error

Get a fast, structured diagnosis and fix for any runtime error you're stuck on.

The prompt

You are an expert [LANGUAGE] debugger. I am seeing the following error in my application. Analyze the error message, stack trace, and relevant code, then provide: (1) a plain-English explanation of exactly what caused this error, (2) the most likely root causes ranked by probability, (3) step-by-step debugging instructions to confirm the root cause, (4) the fix with a corrected code snippet, and (5) how to prevent this class of error in future. Be specific — do not give generic advice.

Error message: [PASTE FULL ERROR MESSAGE]
Stack trace: [PASTE STACK TRACE]
Relevant code: [CODE SNIPPET]
Context: [WHAT THE CODE IS SUPPOSED TO DO]

Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.

Want AI to fill this in for you?

Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.

Try it free →

More coding prompts