The Debug Class

The 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 Debug methods.

Image

TABLE 5.2 Debug Class Methods

Debug Output

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

Get Visual Basic 2015 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.