Export (0) Print
Expand All

Debug Methods

The methods of the Debug class are listed here. For a complete list of Debug class members, see the Debug Members topic.

Public Methods

public methodstatic (Shared in Visual Basic)Assert

Supported by the .NET Compact Framework.

Overloaded. Checks for a condition and displays a message if the condition is false.
public methodstatic (Shared in Visual Basic)Close

Supported by the .NET Compact Framework.

Flushes the output buffer and then closes the Listeners.
public methodstatic (Shared in Visual Basic)Fail

Supported by the .NET Compact Framework.

Overloaded. Emits an error message.
public methodstatic (Shared in Visual Basic)Flush

Supported by the .NET Compact Framework.

Flushes the output buffer and causes buffered data to write to the Listeners collection.
public methodstatic (Shared in Visual Basic)Indent Increases the current IndentLevel by one.
public methodstatic (Shared in Visual Basic)Unindent Decreases the current IndentLevel by one.
public methodstatic (Shared in Visual Basic)Write

Supported by the .NET Compact Framework.

Overloaded. Writes information about the debug to the trace listeners in the Listeners collection.
public methodstatic (Shared in Visual Basic)WriteIf

Supported by the .NET Compact Framework.

Overloaded. Writes information about the debug to the trace listeners in the Listeners collection if a condition is true.
public methodstatic (Shared in Visual Basic)WriteLine

Supported by the .NET Compact Framework.

Overloaded. Writes information about the debug to the trace listeners in the Listeners collection.
public methodstatic (Shared in Visual Basic)WriteLineIf

Supported by the .NET Compact Framework.

Overloaded. Writes information about the debug to the trace listeners in the Listeners collection if a condition is true.

See Also

Debug Class | System.Diagnostics Namespace

Show:
© 2014 Microsoft