Chapter 13. Tracing and Debugging in .NET

Complicated applications cannot be put under the debugger to find out what went wrong. Duplicating, or even understanding, what conditions are needed to replicate the problem is often difficult. The System.Diagnostics namespace has several classes that help you instrument your application. [1]

Instrumenting your application for debugging and tracing will enable you to make your applications more robust. It also illustrates the common pattern of how the framework divides classes into separate tasks (writing the output, controlling the output, and the output destination) so that you can customize parts and still rely on the Framework classes for the rest. The mechanics of instrumenting your application has ...

Get Application Development Using C# and .NET 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.