Export (0) Print
Expand All

Debugger.Log Method

Posts a message for the attached debugger.

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

public static void Log(
	int level,
	string category,
	string message


Type: System.Int32
A description of the importance of the message.
Type: System.String
The category of the message. This parameter is limited to 256 characters. Longer strings are truncated.
Type: System.String
The message to show.

If there is no debugger attached, this method has no effect. The debugger might not report the message, depending on its settings.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

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.

Community Additions

© 2015 Microsoft