Edit

Share via


Debugger Class

Definition

Enables communication with a debugger. This class cannot be inherited.

public static class Debugger
public sealed class Debugger
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class Debugger
Inheritance
Debugger
Attributes

Constructors

Debugger()
Obsolete.

Initializes a new instance of the Debugger class.

Fields

DefaultCategory

Represents the default category of message with a constant.

Properties

IsAttached

Gets a value that indicates whether a debugger is attached to the process.

Methods

Break()

Signals a breakpoint to an attached debugger.

BreakForUserUnhandledException(Exception)

Signals a breakpoint to an attached debugger with the exception details if a .NET debugger is attached with break on user-unhandled exception enabled and a method attributed with DebuggerDisableUserUnhandledExceptionsAttribute calls this method.

IsLogging()

Checks to see if logging is enabled by an attached debugger.

Launch()

Launches and attaches a debugger to the process.

Log(Int32, String, String)

Posts a message for the attached debugger.

NotifyOfCrossThreadDependency()

Notifies a debugger that execution is about to enter a path that involves a cross-thread dependency.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0