Debug Methods
Collapse the table of content
Expand the table of content

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.

  NameDescription
Public method Static member Assert(Boolean) Checks for a condition and outputs the call stack if the condition is false.
Public method Static member Assert(Boolean, String) Checks for a condition and displays a specified message if the condition is false.
Public method Static member Assert(Boolean, String, String) Checks for a condition and displays two specified messages if the condition is false.
Public method Static member Assert(Boolean, String, String, Object()) Checks for a condition and outputs the message and the call stack if the condition is false.
Public method Static member WriteLine(Object) Writes the value of a specified object's ToString method to the debugger by using the OutputDebugString function.
Public method Static member WriteLine(String) Writes a specified message followed by a line terminator to the debugger by using the OutputDebugString function.
Public method Static member WriteLine(String, Object()) Writes a formatted string followed by a line terminator to the debugger by using the OutputDebugString function.
Public method Static member WriteLineIf Writes a specified message followed by a line terminator to the debugger by using OutputDebugString function if a condition is true.
Top

Show:
© 2017 Microsoft