Debug.WriteLine Method (Object)
Writes the value of a specified object's ToString method to the debugger by using the OutputDebugString function.
Assembly: System (in System.dll)
'Declaration <ConditionalAttribute("DEBUG")> _ Public Shared Sub WriteLine ( _ value As Object _ )
[ConditionalAttribute("DEBUG")] public static void WriteLine( Object value )
An object whose name is sent to the debugger by using the OutputDebugString function.
By default, the output is sent to the debugger.
The WriteLine method behaves differently in Silverlight-based applications than it does in desktop applications. There is no Listeners collection to specify the destination for debug output. In Windows, the .NET Framework for Silverlight sends debugging information 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. The Apple Macintosh OS X does not have an OutputDebugString function. Therefore, managed debugging can be done only through remote debugging on a Windows computer by using a Visual Studio plug-in.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.