Mono Class Library: Overview

System.Diagnostics.Debug: Members

The members of System.Diagnostics.Debug are listed below.

See Also: Inherited members from System.Object

Public Properties

static
AutoFlushbool. Should TraceListener.Flush be called on the Debug.Listeners after writing each message?
static
IndentLevelint. The message indent level.
static
IndentSizeint. The message indent size.
[read-only]
static
ListenersTraceListenerCollection. Gets the list of System.Diagnostics.TraceListener objects that messages are forwarded to.

Public Methods

static
Assert(bool)
Displays a message if condition is false.
static
Assert(bool, string)
Displays message if condition is false.
static
Assert(bool, string, string)
Displays message and detailMessage if condition is false.
static
Close()
Closes all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Fail(string)
Send a failure message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Fail(string, string)
Send a failure message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Flush()
Flushes the contents of all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Indent()
Indents subsequent messages until the next Debug.Unindent call.
static
Print(string)
Documentation for this section has not yet been entered.
static
Print(string, params object[])
Documentation for this section has not yet been entered.
static
Unindent()
Unindents subsequent messages.
static
Write(object)
Send value to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Write(string)
Send message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Write(object, string)
Send value and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
Write(string, string)
Send message and its category message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteIf(bool, object)
If condition is true, send a value to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteIf(bool, string)
If condition is true, send message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteIf(bool, object, string)
If condition is true, send message and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteIf(bool, string, string)
If condition is true, send message and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLine(object)
Send value to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLine(string)
Send message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLine(object, string)
Send value and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLine(string, string)
Send message and its category message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLineIf(bool, object)
If condition is true, send a value to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLineIf(bool, string)
If condition is true, send message to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLineIf(bool, object, string)
If condition is true, send message and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.
static
WriteLineIf(bool, string, string)
If condition is true, send message and its category category to all System.Diagnostics.TraceListener objects in the Debug.Listeners collection.