User Tools

Site Tools


mt2011f:week12

Week 12: Debugging and Unit Testing

Objectives

  • Teach effective ways to find bugs in programs.
  • Motivate students to adequately test their programs.

Readings for Class Discussion

Optional:

  • Ahmadzadeh (2005). An Analysis of Patterns of Debugging Among Computer Science Students.
  • Murphy (2010). Pair Debugging: A Transactive Discourse Analysis.

Topics

  • Programming by testing first
  • Using a debugger (Java vs. C/C++)
  • Keys to debugging (from Horstmann, Chapter 6):
    • breakpoints
    • single-stepping
    • inspecting variables
  • Assertions and invariants
  • Unit testing
  • Code coverage and creating test cases

Lab

mt2011f/week12.txt · Last modified: 2011/11/21 11:24 (external edit)