Debug.WriteLine Method (String, Object())
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a formatted string followed by a line terminator to the debugger by using the OutputDebugString function.
Assembly: System (in System.dll)
'Declaration <ConditionalAttribute("DEBUG")> _ Public Shared Sub WriteLine ( _ format As String, _ ParamArray args As Object() _ )
Parameters
- format
- Type: System.String
A composite format string that contains text intermixed with zero or more format items, which correspond to objects in the args array.
- args
- Type:
System.Object
()
An object array containing zero or more objects to format.
By default, the output is written to the debugger.
Note: |
|---|
The WriteLine method behaves differently in Windows Phone applications than it does in desktop applications. There is no Listeners collection to specify the destination for debug output. The debugging information is sent to the OutputDebugString function and to the debugger, if one is attached. The Visual Studio debugger displays the information in the Output window. If a debugger is not attached, the output from OutputDebugString can be viewed by using a debug viewer. |
Note: