rename all jvm-only files to jvm.cs
[mono.git] / mcs / class / System / System.Diagnostics / Debugger.jvm.cs
1 //\r\r
2 // System.Diagnostics.Debugger.cs\r\r
3 //\r\r
4 // Author:\r\r
5 //      John R. Hicks (angryjohn69@nc.rr.com)\r\r
6 //\r\r
7 // (C) 2001\r\r
8 //\r\r
9 using System;\r\r
10 \r\r
11 namespace System.Diagnostics\r\r
12 {\r\r
13         /// <summary>\r\r
14         /// Enables communication with a debugger.\r\r
15         /// </summary>\r\r
16         [MonoTODO]\r\r
17         public sealed class Debugger\r\r
18         {\r\r
19                 private static bool isAttached;\r\r
20                 \r\r
21                 /// <summary>\r\r
22                 /// Represents the default category of a message with a constant.\r\r
23                 /// </summary>\r\r
24                 public static readonly string DefaultCategory = "";\r\r
25                 \r\r
26                 /// <summary>\r\r
27                 /// Returns a Boolean indicating whether a debugger is attached to a process.\r\r
28                 /// </summary>\r\r
29                 /// <value>\r\r
30                 /// true if debugger is attached; otherwise, false.\r\r
31                 /// </value>\r\r
32                 public static bool IsAttached\r\r
33                 {\r\r
34                         get\r\r
35                         {\r\r
36                                 return isAttached;\r\r
37                         }\r\r
38                 }\r\r
39                 \r\r
40                 /// <summary>\r\r
41                 /// Causes a breakpoint to be signaled to an attached debugger.\r\r
42                 /// </summary>\r\r
43                 [MonoTODO]\r\r
44                 public static void Break()\r\r
45                 {\r\r
46                         throw new NotImplementedException();\r\r
47                 }\r\r
48                 \r\r
49                 /// <summary>\r\r
50                 /// Checks to see if logging is enabled by an attached debugger.\r\r
51                 /// </summary>\r\r
52                 [MonoTODO]\r\r
53                 public static bool IsLogging()\r\r
54                 {\r\r
55                         // Return false. DefaultTraceListener invokes this method, so throwing\r\r
56                         // a NotImplementedException wouldn't be appropriate.\r\r
57       return false;\r\r
58 \r\r
59                 }\r\r
60                 \r\r
61                 /// <summary>\r\r
62                 /// Launches and attaches a debugger to the process.\r\r
63                 /// </summary>\r\r
64                 [MonoTODO]\r\r
65                 public static bool Launch()\r\r
66                 {\r\r
67                         throw new NotImplementedException();\r\r
68                 }\r\r
69                 \r\r
70                 /// <summary>\r\r
71                 /// Posts a message for the attached debugger.\r\r
72                 /// </summary>\r\r
73                 /// <param name="level">\r\r
74                 /// A description of the importance of this message\r\r
75                 /// </param>\r\r
76                 /// <param name="category">\r\r
77                 /// A string describing the category of this message.\r\r
78                 /// </param>\r\r
79                 /// <param name="message">\r\r
80                 /// A string representing the message to show.\r\r
81                 /// </param>\r\r
82                 [MonoTODO]\r\r
83                 public static void Log(int level, string category, string message)\r\r
84                 {\r\r
85                         // Do nothing. DefaultTraceListener invokes this method, so throwing\r\r
86                         // a NotImplementedException wouldn't be appropriate.\r\r
87                 }\r\r
88                 \r\r
89                 public Debugger()\r\r
90                 {\r\r
91                         isAttached = false;\r\r
92                 }\r\r
93         }\r\r
94 }\r\r