Debugging (cont)
The easiest bugs to find:
- the ones the compiler tells you about
The most difficult bugs to find:
- ones that are not reproducible (random)
- those involving pointers/dynamically-allocated memory
Assumptions are what makes debugging difficult.
Corollary: an onlooker will find the bug quicker than you.
|