7 [global::__DynamicallyInvokable]
18 return TraceInternal.Listeners;
30 return TraceInternal.AutoFlush;
35 TraceInternal.AutoFlush = value;
45 return TraceInternal.IndentLevel;
49 TraceInternal.IndentLevel = value;
59 return TraceInternal.IndentSize;
63 TraceInternal.IndentSize = value;
68 [Conditional(
"DEBUG")]
71 TraceInternal.Flush();
75 [Conditional(
"DEBUG")]
79 TraceInternal.Close();
84 [Conditional(
"DEBUG")]
85 [global::__DynamicallyInvokable]
86 public static void Assert(
bool condition)
88 TraceInternal.Assert(condition);
94 [Conditional(
"DEBUG")]
95 [global::__DynamicallyInvokable]
96 public static void Assert(
bool condition,
string message)
98 TraceInternal.Assert(condition, message);
105 [Conditional(
"DEBUG")]
106 [global::__DynamicallyInvokable]
107 public static void Assert(
bool condition,
string message,
string detailMessage)
109 TraceInternal.Assert(condition, message, detailMessage);
117 [Conditional(
"DEBUG")]
118 [global::__DynamicallyInvokable]
119 public static void Assert(
bool condition,
string message,
string detailMessageFormat, params
object[] args)
126 [Conditional(
"DEBUG")]
127 [global::__DynamicallyInvokable]
128 public static void Fail(
string message)
130 TraceInternal.Fail(message);
136 [Conditional(
"DEBUG")]
137 [global::__DynamicallyInvokable]
138 public static void Fail(
string message,
string detailMessage)
140 TraceInternal.Fail(message, detailMessage);
145 [Conditional(
"DEBUG")]
146 public static void Print(
string message)
148 TraceInternal.WriteLine(message);
158 [Conditional(
"DEBUG")]
159 public static void Print(
string format, params
object[] args)
166 [Conditional(
"DEBUG")]
167 [global::__DynamicallyInvokable]
168 public static void Write(
string message)
170 TraceInternal.Write(message);
175 [Conditional(
"DEBUG")]
176 [global::__DynamicallyInvokable]
177 public static void Write(
object value)
179 TraceInternal.Write(value);
185 [Conditional(
"DEBUG")]
186 [global::__DynamicallyInvokable]
187 public static void Write(
string message,
string category)
189 TraceInternal.Write(message, category);
195 [Conditional(
"DEBUG")]
196 [global::__DynamicallyInvokable]
197 public static void Write(
object value,
string category)
199 TraceInternal.Write(value, category);
204 [Conditional(
"DEBUG")]
205 [global::__DynamicallyInvokable]
208 TraceInternal.WriteLine(message);
213 [Conditional(
"DEBUG")]
214 [global::__DynamicallyInvokable]
217 TraceInternal.WriteLine(value);
223 [Conditional(
"DEBUG")]
224 [global::__DynamicallyInvokable]
225 public static void WriteLine(
string message,
string category)
227 TraceInternal.WriteLine(message, category);
233 [Conditional(
"DEBUG")]
234 [global::__DynamicallyInvokable]
235 public static void WriteLine(
object value,
string category)
237 TraceInternal.WriteLine(value, category);
243 [Conditional(
"DEBUG")]
244 [global::__DynamicallyInvokable]
245 public static void WriteLine(
string format, params
object[] args)
253 [Conditional(
"DEBUG")]
254 [global::__DynamicallyInvokable]
255 public static void WriteIf(
bool condition,
string message)
257 TraceInternal.WriteIf(condition, message);
263 [Conditional(
"DEBUG")]
264 [global::__DynamicallyInvokable]
265 public static void WriteIf(
bool condition,
object value)
267 TraceInternal.WriteIf(condition, value);
274 [Conditional(
"DEBUG")]
275 [global::__DynamicallyInvokable]
276 public static void WriteIf(
bool condition,
string message,
string category)
278 TraceInternal.WriteIf(condition, message, category);
285 [Conditional(
"DEBUG")]
286 [global::__DynamicallyInvokable]
287 public static void WriteIf(
bool condition,
object value,
string category)
289 TraceInternal.WriteIf(condition, value, category);
295 [Conditional(
"DEBUG")]
296 [global::__DynamicallyInvokable]
299 TraceInternal.WriteLineIf(condition, message);
305 [Conditional(
"DEBUG")]
306 [global::__DynamicallyInvokable]
309 TraceInternal.WriteLineIf(condition, value);
317 [Conditional(
"DEBUG")]
318 [global::__DynamicallyInvokable]
319 public static void WriteLineIf(
bool condition,
string message,
string category)
321 TraceInternal.WriteLineIf(condition, message, category);
328 [Conditional(
"DEBUG")]
329 [global::__DynamicallyInvokable]
330 public static void WriteLineIf(
bool condition,
object value,
string category)
332 TraceInternal.WriteLineIf(condition, value, category);
336 [Conditional(
"DEBUG")]
339 TraceInternal.Indent();
343 [Conditional(
"DEBUG")]
346 TraceInternal.Unindent();
Provides a thread-safe list of T:System.Diagnostics.TraceListener objects.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
Describes a set of security permissions applied to code. This class cannot be inherited.
static void Assert(bool condition, string message, string detailMessageFormat, params object[] args)
Checks for a condition; if the condition is false, outputs two messages (simple and formatted) and di...
static void WriteIf(bool condition, object value, string category)
Writes a category name and the value of the object's M:System.Object.ToString method to the trace lis...
static void WriteLine(string message, string category)
Writes a category name and message to the trace listeners in the P:System.Diagnostics....
Exposes state that might be shared between threads.
static void Fail(string message)
Emits the specified error message.
static void Assert(bool condition, string message)
Checks for a condition; if the condition is false, outputs a specified message and displays a message...
static void WriteLine(string format, params object[] args)
Writes a formatted message followed by a line terminator to the trace listeners in the P:System....
static void WriteLine(string message)
Writes a message followed by a line terminator to the trace listeners in the P:System....
static void Flush()
Flushes the output buffer and causes buffered data to write to the P:System.Diagnostics....
static void Write(object value)
Writes the value of the object's M:System.Object.ToString method to the trace listeners in the P:Syst...
static void Write(string message)
Writes a message to the trace listeners in the P:System.Diagnostics.Debug.Listeners collection.
static void WriteLineIf(bool condition, string message)
Writes a message to the trace listeners in the P:System.Diagnostics.Debug.Listeners collection if a c...
static int IndentLevel
Gets or sets the indent level.
static void WriteLineIf(bool condition, string message, string category)
Writes a category name and message to the trace listeners in the P:System.Diagnostics....
SecurityAction
Specifies the security actions that can be performed using declarative security.
static void Close()
Flushes the output buffer and then calls the Close method on each of the P:System....
static void Unindent()
Decreases the current P:System.Diagnostics.Debug.IndentLevel by one.
static int IndentSize
Gets or sets the number of spaces in an indent.
static void WriteIf(bool condition, string message)
Writes a message to the trace listeners in the P:System.Diagnostics.Debug.Listeners collection if a c...
static void WriteLine(object value)
Writes the value of the object's M:System.Object.ToString method to the trace listeners in the P:Syst...
static void Print(string format, params object[] args)
Writes a formatted string followed by a line terminator to the trace listeners in the P:System....
static void Indent()
Increases the current P:System.Diagnostics.Debug.IndentLevel by one.
static bool AutoFlush
Gets or sets a value indicating whether M:System.Diagnostics.Debug.Flush should be called on the P:Sy...
Provides a set of methods and properties that help debug your code.
static void Assert(bool condition, string message, string detailMessage)
Checks for a condition; if the condition is false, outputs two specified messages and displays a mess...
static void Write(object value, string category)
Writes a category name and the value of the object's M:System.Object.ToString method to the trace lis...
static void WriteLineIf(bool condition, object value, string category)
Writes a category name and the value of the object's M:System.Object.ToString method to the trace lis...
static void WriteIf(bool condition, object value)
Writes the value of the object's M:System.Object.ToString method to the trace listeners in the P:Syst...
static void WriteLine(object value, string category)
Writes a category name and the value of the object's M:System.Object.ToString method to the trace lis...
static void Assert(bool condition)
Checks for a condition; if the condition is false, displays a message box that shows the call stack.
Provides information about a specific culture (called a locale for unmanaged code development)....
static void Fail(string message, string detailMessage)
Emits an error message and a detailed error message.
SecurityPermissionFlag
Specifies access flags for the security permission object.
static void Print(string message)
Writes a message followed by a line terminator to the trace listeners in the P:System....
static void WriteLineIf(bool condition, object value)
Writes the value of the object's M:System.Object.ToString method to the trace listeners in the P:Syst...
static void Write(string message, string category)
Writes a category name and message to the trace listeners in the P:System.Diagnostics....
static void WriteIf(bool condition, string message, string category)
Writes a category name and message to the trace listeners in the P:System.Diagnostics....
static TraceListenerCollection Listeners
Gets the collection of listeners that is monitoring the debug output.