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