10 [__DynamicallyInvokable]
13 private class CrossThreadDependencyNotification : ICustomDebuggerNotification
23 [__DynamicallyInvokable]
27 [SecuritySafeCritical]
28 [__DynamicallyInvokable]
33 [Obsolete(
"Do not create instances of the Debugger class. Call the static methods directly on this type instead",
true)]
40 [SecuritySafeCritical]
41 [__DynamicallyInvokable]
58 [SecuritySafeCritical]
59 private static void BreakCanThrow()
70 private static extern void BreakInternal();
76 [SecuritySafeCritical]
77 [__DynamicallyInvokable]
92 return LaunchInternal();
96 private static void NotifyOfCrossThreadDependencySlow()
98 CrossThreadDependencyNotification data =
new CrossThreadDependencyNotification();
99 CustomNotification(data);
108 NotifyOfCrossThreadDependencySlow();
114 private static extern bool LaunchInternal();
121 [SecuritySafeCritical]
122 public static extern void Log(
int level,
string category,
string message);
128 [SecuritySafeCritical]
132 [SecuritySafeCritical]
133 private static extern void CustomNotification(ICustomDebuggerNotification data);
Describes a set of security permissions applied to code. This class cannot be inherited.
static void Log(int level, string category, string message)
Posts a message for the attached debugger.
Debugger()
Initializes a new instance of the T:System.Diagnostics.Debugger class.
static bool IsLogging()
Checks to see if logging is enabled by an attached debugger.
static bool IsAttached
Gets a value that indicates whether a debugger is attached to the process.
static bool Launch()
Launches and attaches a debugger to the process.
static readonly string DefaultCategory
Represents the default category of message with a constant.
MethodImplOptions
Defines the details of how a method is implemented.
Enables communication with a debugger. This class cannot be inherited.
void Demand()
Forces a T:System.Security.SecurityException at run time if all callers higher in the call stack have...
static void NotifyOfCrossThreadDependency()
Notifies a debugger that execution is about to enter a path that involves a cross-thread dependency.
SecurityPermissionFlag
Specifies access flags for the security permission object.
static void Break()
Signals a breakpoint to an attached debugger.
The exception that is thrown when a security error is detected.