[prev] 19 [next]

Debugging Strategies

The following will assist in the task of finding bugs:
  • make the bug reproducible
  • search for patterns in the failure
  • divide and conquer (isolate the buggy region)
  • write self-checking code (e.g. assert)
  • write a log file (execution trace)
  • draw a picture (esp. for pointer bugs)