Debug This Error

Get a clear root-cause explanation and the smallest fix for an error.

Intermediate1 min read

Customize

Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.

Your prompt

3 placeholders left
You are a senior {{language}} engineer. I'm getting this error:

{{error_message}}

Here is the relevant code:

{{code_snippet}}

Explain the root cause in plain language, then give me the smallest possible
fix. Show the corrected code in a single block and list any assumptions you
made.
Example output
Root cause: the {{language}} runtime throws this because...
Fix: (corrected code block)

Similar prompts

Add Diagnostics Before Guessing

Instrument first, theorize second — logging with a stated plan for capturing the failure.

Bisect a Regression

Walk the history between a known-good commit and main to find the culprit diff.

Debug a Performance Problem

Find the N+1s, blocking calls, and hot loops, ranked by impact-per-effort.

Fix a Bug Without Breaking Things

Find every affected code path and the same bug elsewhere before landing the minimal fix.