2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System / System.Diagnostics / Debugger.jvm.cs
blobd2e2440c55262f83ca83cd688a93dfccb8a31217
1 //
2 // System.Diagnostics.Debugger.cs
3 //
4 // Author:
5 // John R. Hicks (angryjohn69@nc.rr.com)
6 //
7 // (C) 2001
8 //
9 using System;
11 namespace System.Diagnostics
13 /// <summary>
14 /// Enables communication with a debugger.
15 /// </summary>
16 [MonoTODO]
17 public sealed class Debugger
19 private static bool isAttached;
21 /// <summary>
22 /// Represents the default category of a message with a constant.
23 /// </summary>
24 public static readonly string DefaultCategory = "";
26 /// <summary>
27 /// Returns a Boolean indicating whether a debugger is attached to a process.
28 /// </summary>
29 /// <value>
30 /// true if debugger is attached; otherwise, false.
31 /// </value>
32 public static bool IsAttached
34 get
36 return isAttached;
40 /// <summary>
41 /// Causes a breakpoint to be signaled to an attached debugger.
42 /// </summary>
43 [MonoTODO]
44 public static void Break()
46 throw new NotImplementedException();
49 /// <summary>
50 /// Checks to see if logging is enabled by an attached debugger.
51 /// </summary>
52 [MonoTODO]
53 public static bool IsLogging()
55 // Return false. DefaultTraceListener invokes this method, so throwing
56 // a NotImplementedException wouldn't be appropriate.
57 return false;
61 /// <summary>
62 /// Launches and attaches a debugger to the process.
63 /// </summary>
64 [MonoTODO]
65 public static bool Launch()
67 throw new NotImplementedException();
70 /// <summary>
71 /// Posts a message for the attached debugger.
72 /// </summary>
73 /// <param name="level">
74 /// A description of the importance of this message
75 /// </param>
76 /// <param name="category">
77 /// A string describing the category of this message.
78 /// </param>
79 /// <param name="message">
80 /// A string representing the message to show.
81 /// </param>
82 [MonoTODO]
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.
89 public Debugger()
91 isAttached = false;