Chapter 7. Tracing, Debugging, and Error Handling
Every computer programmer has run into bugs. It comes with the territory. Many bugs are found during the coding process. Others pop up only when an end user performs a specific and unusual sequence of steps or the program receives unexpected data. It is highly desirable to find bugs early in the development process, and very important to avoid having end users find your bugs for you. Countless studies have shown that the earlier you find a bug, the easier and less expensive it is to fix.
In the event that your program does run into a problem, you will want to recover quickly and invisibly, or, at worst, fail gracefully. ASP.NET provides tools and features to help reach these goals, including:
To get started exploring the ASP.NET debugging tools, you should first create a simple project to which you will add tracing code. You will then introduce bugs into the program and use the debugger to find and fix the bugs.