Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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
)

Parameters

level
Type: System.Int32

A description of the importance of the message.

category
Type: System.String

The category of the message.

message
Type: System.String

The message to show.

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

NoteNote

The category parameter is limited to 256 characters. Strings longer than 256 characters are truncated.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft