next up previous
Next: Debugging by inserting output Up: Unit 10 Previous: Drivers for testing

Techniques for detecting errors (debugging)

If the testing phase signals the presence of logical errors, or if we are not able to detect the cause for a runtime error, it is necessary to debug the program.

There are two ways in which we can obtain information that is helpful for debugging a program:

  1. by inserting output statements in the code;
  2. by executing the program by means of a debugger.


next up previous
Next: Debugging by inserting output Up: Unit 10 Previous: Drivers for testing