Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Debug Members
Collapse the table of content
Expand the table of content

Debug Members

Provides a set of methods and properties that help debug your code. This class cannot be inherited.

The Debug type exposes the following members.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Assert Overloaded. Checks for a condition; if the condition is false, outputs messages and displays a message box that shows the call stack.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Close Flushes the output buffer and then calls the Close method on each of the Listeners.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Fail Overloaded. Emits an error message.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Flush Flushes the output buffer and causes buffered data to write to the Listeners collection.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Static member Indent Increases the current IndentLevel by one.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Print Overloaded. Writes a message followed by a line terminator to the trace listeners in the Listeners collection.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member Unindent Decreases the current IndentLevel by one.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Write Overloaded. Writes information about the debug to the trace listeners in the Listeners collection.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework WriteIf Overloaded. Writes information about the debug to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework WriteLine Overloaded. Writes information about the debug to the trace listeners in the Listeners collection.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework WriteLineIf Overloaded. Writes information about the debug to the trace listeners in the Listeners collection if a condition is true.
Top

  NameDescription
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework AutoFlush Gets or sets a value indicating whether Flush should be called on the Listeners after every write.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework IndentLevel Gets or sets the indent level.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework IndentSize Gets or sets the number of spaces in an indent.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework Listeners Gets the collection of listeners that is monitoring the debug output.
Top

Community Additions

ADD
Show:
© 2015 Microsoft