Debugging and Tracing
Developers who are interested in debugging their code to the fullest extent possible must become comfortable with the concept of instrumenting their code. This simply refers to the practice of burying various code constructs inside an application; these constructs have the capability to report on execution details and errors as they occur.
The .NET Framework Class Library has some great support for instrumentation within the System.Diagnostics namespace—specifically, through its Debug and Trace classes.
The Debug and Trace Classes
Both the Debug and Trace classes provide programmers with a way of inserting instrumentation code into applications for debugging assistance. They are essentially the same in terms of their supported ...
Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.