The Debug Class
Debug class, exposed by the
System.Diagnostics namespace, provides interaction with the Visual Studio debugger and lets you know whether your code is working correctly via instrumentation that evaluates conditions at a certain point of your code. The
Debug class exposes only shared methods and can display contents into the Output window so that you can programmatically interact with the debugger without the need to set breakpoints. Table 5.2 provides an overview of
Saying that the
Debug class can display contents to the Output window is true only in part. Developers ...