Debug Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Debug type exposes the following members.
| Name | Description | |
|---|---|---|
|
Assert(Boolean) | Checks for a condition and outputs the call stack if the condition is false. |
|
Assert(Boolean, String) | Checks for a condition and displays a specified message if the condition is false. |
|
Assert(Boolean, String, String) | Checks for a condition and displays two specified messages if the condition is false. |
|
Assert(Boolean, String, String, Object()) | Checks for a condition and outputs the message and the call stack if the condition is false. |
|
WriteLine(Object) | Writes the value of a specified object's ToString method to the debugger by using the OutputDebugString function. |
|
WriteLine(String) | Writes a specified message followed by a line terminator to the debugger by using the OutputDebugString function. |
|
WriteLine(String, Object()) | Writes a formatted string followed by a line terminator to the debugger by using the OutputDebugString function. |
|
WriteLineIf | Writes a specified message followed by a line terminator to the debugger by using OutputDebugString function if a condition is true. |
Show: