Debugging

Steven Zeil

July 17, 2013

Course Home   e-mail

1 You can’t debug what you don’t understand
2 Make it fail…
 2.1 Make it fail Reliably
 2.2 Make it fail Easily
 2.3 Make it fail Visibly
3 Example: the Auction Program
 3.1 Simplifying the Failing Tests
 3.2 Instrument the Code
 3.3 Working Backwards
4 Lessons

Testing versus Debugging   


Rules of Debugging   

  1. You can’t debug what you don’t understand
  2. Make it fail...
    1. Make it fail reliably
    2. Make it fail easily
    3. Make it fail visibly
  3. Track down the culprit
    1. Don’t Guess, Hypothesize
    2. Divide and Conquer
    3. If you didn’t fix it, it ain’t fixed!

[Previous]