WriteLine Method (Object)
Collapse the table of content
Expand the table of content

Debug.WriteLine Method (Object)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Writes the value of a specified object's ToString method to the debugger by using the OutputDebugString function.

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)

'Declaration
<ConditionalAttribute("DEBUG")> _
Public Shared Sub WriteLine ( _
	value As Object _
)

Parameters

value
Type: System.Object
An object whose name is sent to the debugger by using the OutputDebugString function.

By default, the output is sent to the debugger.

NoteNote:

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft