Debugging





Debugging

There are two major phases of debugging activities: Well-established fact: It is much more expensive (in terms of time and effort) to detect/locate existing bugs, than to prevent them in the first place.


Thought Experiment


Bug Prevention

There are four cornerstones to preventing program bugs:


Preventing Bugs Via Design


Preventing Bugs Via Good Writing


Preventing Bugs Via Self-Checking Code


Preventing Bugs Via Test Scaffolding




Stephen Edwards <edwards@cs.vt.edu>
Last modified: Sun Mar 9 21:47:56 EST 1997