How To Use A (C#) Debugger
The tutorial document (in Word format)
The project used in the overview:
- Debugger_Example.ZIP
(Note that in BIT 143, the contents of this project are incorporated into the
starter solution for the appropriate PCEs, so you won't need to download them
separately)
Once you've walked through the tutorial, I'd recommend trying
your debugging
skills out with the "LooksGoodToMe.cs" file - uncomment the line of
code in the main method, and go from there!
- 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).
- In DebuggerExercise_Answer.doc you should clearly
explain:
- What's wrong with the program in the LooksGoodToMe.cs file, and
- How you used the debugger to reach this conclusion.
- 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.