Debugging with AI
For engineers
Reproduce first, feed real evidence, test one hypothesis at a time and take back control when the agent loops
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
An agent is asked to fix a bug from a one-line report. What should you ask for first?
Check yourself · 2 of 5
Which input gives an agent the best chance of finding a crash?
Check yourself · 3 of 5
An agent suggests adding a null check, raising a timeout and wrapping the call in try/catch for one bug. What is the problem?
Check yourself · 4 of 5
What does git bisect run ./check.sh do?
Check yourself · 5 of 5
An agent has failed to fix the same bug three times and keeps proposing new edits. Best move?
Topics
- Reproducing the bug before the fix4 min read · Getting a failing test or script that shows the bug, so the agent has a clear target and proof of the fix
- Feeding the agent real evidence4 min read · Full stack traces, logs, the diff that introduced the bug, environment details and exact steps instead of paraphrases
- Testing one bug hypothesis at a time4 min read · Ranking likely causes, testing the cheapest with a probe or log line, and refusing shotgun edits
- Bisecting regressions with an agent4 min read · Using git bisect with a scripted pass or fail check so the agent finds the commit that introduced the bug
- Taking back control from a stuck agent4 min read · Spotting guess loops, symptom patches and disabled tests, then resetting with a fresh session and a narrower task
Start here
- Git Tools: Debugging with Git (Pro Git) (opens in a new tab)BookFree
File annotation and binary search with git bisect, explained step by step.
- git-bisect documentation (opens in a new tab)DocsFree
The full reference for bisect run, exit codes, skip and reset.
- Common workflows (Claude Code docs) (opens in a new tab)DocsFree
Shows how to hand an agent an error and ask for a fix with a verified result.
Helps to know first
110 questions · last verified 2026-12