Debugging
Break out of a fix-and-break loop
Each fix causes a new bug, and you’ve been going round for an hour.
- What you get
- The attempts laid side by side, the assumption they share, and one test before any more edits.
- Paste it into
- Your AI tool, in your project
The prompt
We've tried to fix this several times and keep going in circles. Stop editing. 1. List each attempt so far: what you changed, why, and what happened. 2. Name the assumption all of those attempts shared. 3. Write down what we know for certain, with evidence, and what we've only assumed. 4. Propose one small test that checks the biggest assumption directly, such as a log line or a tiny reproduction, and run it. Only suggest a new fix after we've seen that result. If it fails twice more, stop again and tell me whether we should go back to the last working saved version and take a different route.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Debugging
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.
The page still shows old data after a save
You save, the database changes, and the screen shows the old value until a hard refresh.