Fix 1 of 2
Debug with AI by giving it the error, the code and what you tried
AI is fast at reading stack traces and logs and suggesting likely causes. A coding agent can also reproduce the failure and try fixes in the repo.
- 1Collect the error message, stack trace, relevant logs and the code involved.
- 2Paste them into your coding assistant, or run a coding agent in the repo so it can read the code itself.
- 3Ask for ranked hypotheses before asking for a fix.
- 4Confirm the root cause with a failing test before you accept the fix.
I am debugging [SHORT DESCRIPTION]. Expected: [WHAT SHOULD HAPPEN]. Actual: [WHAT HAPPENS]. Here is the error and stack trace, the relevant code, and what I have already tried. Give me the three most likely causes ranked by probability, how to confirm each one, and then the smallest fix for the most likely cause. Do not rewrite unrelated code. Error and logs: [PASTE] Code: [PASTE] Already tried: [PASTE]
Tools: Claude Code, OpenAI Codex, Cursor, GitHub Copilot agent mode or Devin Desktop (ex-Windsurf) · ChatGPT, Claude, Gemini or Microsoft Copilot