Program Debugging
Tom Kelliher, CS17
Feb. 23, 1996
Types of errors:
- Syntax errors
- Warning Diagnostics
- Run-Time errors
- Design/logic errors
Easy-to-use, convenient debugging environment
- Step over
- Trace into
- Run from beginning, current statement
- Program reset
- Just another way of viewing variables?
- Modifying variables
Using the given program:
- Remove any syntax and/or other errors which prevent the program from
compiling
- Run the program with several different inputs. Do there appear to be
any run-time or design errors? (There should be a few.)
- Use the debugger to single step the program, set and use breakpoints,
set some watches, and modify some variables
- Fix the program so that it runs correctly
Thomas P. Kelliher
Thu Feb 22 15:47:16 EST 1996
Tom Kelliher