Debug Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The Debug type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean) Checks for a condition and outputs the call stack if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String) Checks for a condition and displays a specified message if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String, String) Checks for a condition and displays two specified messages if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Assert(Boolean, String, String, array<Object[]) Checks for a condition and outputs the message and the call stack if the condition is false.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(Object) Writes the value of a specified object's ToString method to the debugger by using the OutputDebugString function.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(String) Writes a specified message followed by a line terminator to the debugger by using the OutputDebugString function.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 WriteLine(String, array<Object[]) Writes a formatted string followed by a line terminator to the debugger by using the OutputDebugString function.

Top