Debug with AI: Give It a Traceback and a Minimal Repro
Eight rows crashed a report; a small shrink found the one row and a 5-line repro.
Video #173 ยท AI coding and productivity
Steps in the video
Files
- buggy.py (24 lines)
- bundle.py (27 lines)
- capture.py (24 lines)
- run.py (24 lines)
- shrink.py (32 lines)
Tested with
Python 3.12.15
What this does not show
No AI assistant is run, so this does not measure whether a bundle helps; the bug and data are made up, and the shrinker is a simple pass, not full delta debugging.
Sources
Learning IT by Example.