[prev] [index] [next]

Debugging (cont)

Debugging has three aspects:
  • find the code that's causing the problem
  • understand why it's causing the problem
  • modify the code to eliminate the problem
Generally ...
  • understanding a bug is (usually) easy once you find it
  • fixing a bug is (usually) easy once you find/understand it

To fix: re-examine spec, modify code to satisfy spec.