2 // System.Diagnostics.Debugger.cs
5 // John R. Hicks (angryjohn69@nc.rr.com)
11 namespace System
.Diagnostics
14 /// Enables communication with a debugger.
17 public sealed class Debugger
19 private static bool isAttached
;
22 /// Represents the default category of a message with a constant.
24 public static readonly string DefaultCategory
= "";
27 /// Returns a Boolean indicating whether a debugger is attached to a process.
30 /// true if debugger is attached; otherwise, false.
32 public static bool IsAttached
41 /// Causes a breakpoint to be signaled to an attached debugger.
44 public static void Break()
46 throw new NotImplementedException();
50 /// Checks to see if logging is enabled by an attached debugger.
53 public static bool IsLogging()
55 // Return false. DefaultTraceListener invokes this method, so throwing
56 // a NotImplementedException wouldn't be appropriate.
62 /// Launches and attaches a debugger to the process.
65 public static bool Launch()
67 throw new NotImplementedException();
71 /// Posts a message for the attached debugger.
73 /// <param name="level">
74 /// A description of the importance of this message
76 /// <param name="category">
77 /// A string describing the category of this message.
79 /// <param name="message">
80 /// A string representing the message to show.
83 public static void Log(int level
, string category
, string message
)
85 // Do nothing. DefaultTraceListener invokes this method, so throwing
86 // a NotImplementedException wouldn't be appropriate.