Debugging
Steven
Zeil
July 17,
2013
Testing versus Debugging
- Testing is the act of executing a
program with selected data to uncover bugs.
- Debugging, is the process of
finding the faulty code responsible for failed tests.
Rules of Debugging
- You can’t debug what you
don’t understand
- Make it fail...
- Make it fail reliably
- Make it fail easily
- Make it fail visibly
- Track down the culprit
- Don’t Guess, Hypothesize
- Divide and Conquer
- If you didn’t fix it, it
ain’t fixed!
[]