CS 101 Laboratory Session 13

Week 15 (Monday, April 26 through Friday, April 30) lab session: turn in programming assignment 10. The TA will be available to answer any questions you may have.

Laboratory Exercise: Debugger

The TA will explain the features of the VC++ debugger: break, trace, step, etc. The debugger is sometimes useful when your program compiles OK but does not give you the computational results you expect (it may crash or give the wrong answer).

To practice using the debugger, I have provided a buggy program for you. Find out why it finds the integer "13" in an array that runs from 0 to 6. Save the .txt file as a local .c file and compile and run it. Then debug it. You will receive 5 bonus points if you show the execution of the buggy statement using break, trace, or step in the debugger environment. The TA will record your bonus points when you demonstrate this on-screen in the lab.



This page established March 21, 1999; last updated April 24, 1999 by Rick Wagner.