CSCI E-143 CertPrep:   Debugging   (Kalani, chapter 12)

Saturday, Oct. 2, 2004

This Saturday we go through Kalani's chapter 12, Debugging.   The important pages are 783-802.   You have to know all about Debug and Trace settings and output, and how to control it all.   Every test I've seen—sample and real—just loves this stuff.   I don't know why.

To demonstrate the various debugging windows and features, we will use the following breathtaking example of the programmer's art:

private void crash()
{
   int j = 0;
   for (int i=1; i<=100; i++)
   {
      j = 100/(90-i);
   }
}
Now, don't write in and tell me there's a bug in this.   I know there's a bug in it.   That's the point.   See you Saturday.


Here are some of the things from this chapter that you must know:


Here are the relevant questions from the two tests at the end of the "short Kalani"  book:  

    Test 1:  questions  42  (page 376;  answer:  page 396),  43,  44,  45,  48,  58,  59,  60.

    Test 2:  questions  1  (page 402;  answer:  page 438),  2,  5,  9,  18,  19,  21.

(Some of these questions may duplicate those in long Kalani.   Both texts are listed here.)


Last revised Oct. 14, 2004