Program Debugging

Tom Kelliher, CS17

Feb. 23, 1996

Types of errors:

The Turbo C++ Debugger

Easy-to-use, convenient debugging environment

Single-Stepping Vs. Running

Breakpoints

Watches

Evaluate/Modify

Lab Exercise

Using the given program:

  1. Remove any syntax and/or other errors which prevent the program from compiling
  2. Run the program with several different inputs. Do there appear to be any run-time or design errors? (There should be a few.)
  3. Use the debugger to single step the program, set and use breakpoints, set some watches, and modify some variables
  4. Fix the program so that it runs correctly


Thomas P. Kelliher
Thu Feb 22 15:47:16 EST 1996
Tom Kelliher