O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

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

Debugging

Element

Description

Debug.Assert method

Outputs a message if an expression is False

Debug.AutoFlush property

Determines whether each write operation should be followed by a call to the Flush method

Debug.Close method

Flushes the output buffer and closes any listeners except the Output window

Debug.Flush method

Flushes the output buffer

Debug.Indent method

Increases the value of the IndentLevel property by 1

Debug.IndentLevel property

Determines the indent level for Debug object output

Debug.IndentSize property

Defines the current indent size, in number of spaces

Debug.Listeners property

Returns a collection of all TraceListener objects that are monitoring the Debug object’s output

Debug.Unindent method

Decreases the value of the IndentLevel property by 1

Debug.Write method

Sends output to the Output window and other listeners

Debug.WriteIf method

Sends output to the Output window and other listeners if an expression is True

Debug.WriteLine method

Writes output along with a newline character to the Output window

Debug.WriteLineIf method

Writes output along with a newline character to the Output window if an expression is True

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