Summary


This chapter has concentrated on techniques that you can use to debug your applications. There are a variety of techniques available here, most of which are available for whatever type of project you are creating, not just console applications.

In this chapter, you learned to:

  • Use Debug.WriteLine() and Trace.WriteLine() to write text to the Output window

  • Use tracepoints to write text to the Output window

  • Enter and use Break mode, including how to use the versatile breakpoints

  • Use debugging information windows in VS

  • Step through code

  • Handle exceptions using try . . . catch . . . finally

You have now covered everything that you need to produce simple console applications, along with the methods of debugging them. In the next section of this book, you will look at the powerful technique of object-oriented programming.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net