Debugging
Process of finding and fixing errors in a program. Iterative cycle: reproduce the problem, find the cause, fix it, and verify.
Techniques
- read logs and error trace;
- check input and output data at each step;
- isolate the problem — remove unnecessary parts;
- print intermediate values.
Nuance with LLM
The model may suggest fixes, but there is a 'blind spot': it might not notice the error it introduced. Therefore, deterministic checks are more reliable than the model's self-checks.