O'Reilly logo

Application Development Using C# and .NET by Robert J. Oberg, Michael Stiefel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required