Skip to content

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