Chapter 11. Exception Handling and Debugging

It would be wonderful if we didn't even have to write a chapter like this one, but the truth is that problems do arise when programs are developed and run. In this chapter you will learn about

  • The differences among bugs, errors, and exceptions

  • Syntax, semantic, and logic bugs

  • Exception handling

  • Throwing exceptions

  • Using the debugger

  • Debugging windows

  • Bug detection, isolation, and correction

Most experienced programmers agree that approximately 20 percent of program development time consists of writing the program code. The remaining 80 percent is used for testing, debugging, and maintenance of that code. Clearly, anything you can do to reduce that 80 percent figure is going to help you keep on time and on budget.

Get Beginning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.