Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Debug Methods

The Debug type exposes the following members.

  Name Description
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Assert(Boolean) Checks for a condition; if the condition is false, displays a message box that shows the call stack.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Assert(Boolean, String) Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Assert(Boolean, String, String) Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack.
Public method Static member Assert(Boolean, String, String, Object[]) Checks for a condition; if the condition is false, outputs two messages (simple and formatted) and displays a message box that shows the call stack.
Public method Static member Supported by the XNA Framework Close Flushes the output buffer and then calls the Close method on each of the Listeners.
Public method Static member Supported by the XNA Framework Fail(String) Emits the specified error message.
Public method Static member Supported by the XNA Framework Fail(String, String) Emits an error message and a detailed error message.
Public method Static member Supported by the XNA Framework Flush Flushes the output buffer and causes buffered data to write to the Listeners collection.
Public method Static member Indent Increases the current IndentLevel by one.
Public method Static member Print(String) Writes a message followed by a line terminator to the trace listeners in the Listeners collection.
Public method Static member Print(String, Object[]) Writes a formatted string followed by a line terminator to the trace listeners in the Listeners collection.
Public method Static member Unindent Decreases the current IndentLevel by one.
Public method Static member Supported by the XNA Framework Write(Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework Write(String) Writes a message to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework Write(Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework Write(String, String) Writes a category name and message to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework WriteIf(Boolean, Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework WriteIf(Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework WriteIf(Boolean, Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework WriteIf(Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library WriteLine(Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library WriteLine(String) Writes a message followed by a line terminator to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework WriteLine(Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.
Public method Static member Supported by Portable Class Library WriteLine(String, Object[]) Writes a formatted message followed by a line terminator to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework WriteLine(String, String) Writes a category name and message to the trace listeners in the Listeners collection.
Public method Static member Supported by the XNA Framework WriteLineIf(Boolean, Object) Writes the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library WriteLineIf(Boolean, String) Writes a message to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework WriteLineIf(Boolean, Object, String) Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection if a condition is true.
Public method Static member Supported by the XNA Framework WriteLineIf(Boolean, String, String) Writes a category name and message to the trace listeners in the Listeners collection if a condition is true.
Top
Show:
© 2015 Microsoft