Debugging
Fix an error you don’t understand
The AI patches the line the error names, and a new error appears somewhere else.
- What you get
- The error explained in plain words, its real cause found, and a fix proven by reproducing it first.
- Paste it into
- Your AI tool, in your project
The prompt
I'm getting this error: [paste the full error and what you did just before it]. Don't change anything yet. First explain in plain words what the error means. Then find the real cause: reproduce it, read the code around it, and trace back to where the bad value or state first appears. That place is often not the line the error names. Tell me the cause in one sentence and how confident you are. Then make the smallest fix at the cause, not a check that hides the symptom. Repeat the original steps to show it's gone, and tell me whether the same mistake exists anywhere else in the project.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in. Replace the parts in [brackets] with your own details first.
More in Debugging
Break out of a fix-and-break loop
Each fix causes a new bug, and you’ve been going round for an hour.
Fix a CORS error properly
The browser blocks a request, and the quick fix is to allow everything.
The page is blank and the terminal shows nothing
No error where you’re looking, only a white screen or a page that never finishes loading.
Find the change that broke something
A feature worked last week, and you can’t tell which of forty changes broke it.