The Debug Class

The Debug class, exposed by the System.Diagnostics namespace, provides interaction with the Visual Studio debugger and enables understanding if your code is working correctly via instrumentation that evaluates conditions at a certain point of your code. Basically 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 Debug methods.

Table 5.2 Debug Class Methods

image

Debug Output

Saying that the Debug class can display contents to the Output window is true only in part. ...

Get Visual Basic® 2010 Unleashed 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.