How To Use A (C#) Debugger

The tutorial document (in Word format)

The project used in the tutorial Debugger_Example.ZIP

Once you've walked through the tutorial try out your debugging skills out with the Debugging_Exercises.DebuggingExercises() method - the last line in the method will trigger the error.

What you need to do for this exercise:  

  1. Create a Word .DOC file named DebuggerExercise_Answer.doc that will store your answer ( if you want to use a .PDF or a text file (.txt) that's fine too).
  2. In DebuggerExercise_Answer.doc you should clearly explain:
    1. What's wrong with the program in the Debugging_Exercises.DebuggingExercises() method, and
    2. How you used the debugger to reach this conclusion.
      1. Of the two things you need to write about, this second one is much, much more important than the first.  The goal here is to provide you with an opportunity to learn how to use a debugger, not to fix a program.  Even if you figure out what's wrong with the program on your own you should still experiment with the debugger and figure out how you could have used it to diagnose the problem.