System.Diagnostics.Debug
Provides a set of methods and properties that help debug your code. This class cannot be inherited.
1
Checks for a condition; if the condition is false, displays a message box that shows the call stack.
The conditional expression to evaluate. If the condition is true, a failure message is not sent and the message box is not displayed.
1
Checks for a condition; if the condition is false, outputs a specified message and displays a message box that shows the call stack.
The conditional expression to evaluate. If the condition is true, the specified message is not sent and the message box is not displayed.
The message to send to the collection.
1
Checks for a condition; if the condition is false, outputs two specified messages and displays a message box that shows the call stack.
The conditional expression to evaluate. If the condition is true, the specified messages are not sent and the message box is not displayed.
The message to send to the collection.
The detailed message to send to the collection.
1
Checks for a condition; if the condition is false, outputs two messages (simple and formatted) and displays a message box that shows the call stack.
The conditional expression to evaluate. If the condition is true, the specified messages are not sent and the message box is not displayed.
The message to send to the collection.
The composite format string (see Remarks) to send to the collection. This message contains text intermixed with zero or more format items, which correspond to objects in the array.
An object array that contains zero or more objects to format.
Emits the specified error message.
A message to emit.
2
Emits an error message and a detailed error message.
A message to emit.
A detailed message to emit.
2
Writes the value of the object's method to the trace listeners in the collection.
An object whose name is sent to the .
2
Writes a category name and the value of the object's method to the trace listeners in the collection.
An object whose name is sent to the .
A category name used to organize the output.
2
Writes a message to the trace listeners in the collection.
A message to write.
2
Writes a category name and message to the trace listeners in the collection.
A message to write.
A category name used to organize the output.
2
Writes the value of the object's method to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the value is written to the trace listeners in the collection.
An object whose name is sent to the .
2
Writes a category name and the value of the object's method to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection.
An object whose name is sent to the .
A category name used to organize the output.
2
Writes a message to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the message is written to the trace listeners in the collection.
A message to write.
2
Writes a category name and message to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the category name and message are written to the trace listeners in the collection.
A message to write.
A category name used to organize the output.
2
Writes the value of the object's method to the trace listeners in the collection.
An object whose name is sent to the .
2
Writes a category name and the value of the object's method to the trace listeners in the collection.
An object whose name is sent to the .
A category name used to organize the output.
2
Writes a message followed by a line terminator to the trace listeners in the collection.
A message to write.
2
Writes a formatted message followed by a line terminator to the trace listeners in the collection.
A composite format string (see Remarks) that contains text intermixed with zero or more format items, which correspond to objects in the array.
An object array that contains zero or more objects to format.
Writes a category name and message to the trace listeners in the collection.
A message to write.
A category name used to organize the output.
2
Writes the value of the object's method to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the value is written to the trace listeners in the collection.
An object whose name is sent to the .
2
Writes a category name and the value of the object's method to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the category name and value are written to the trace listeners in the collection.
An object whose name is sent to the .
A category name used to organize the output.
2
Writes a message to the trace listeners in the collection if a condition is true.
The conditional expression to evaluate. If the condition is true, the message is written to the trace listeners in the collection.
A message to write.
2
Writes a category name and message to the trace listeners in the collection if a condition is true.
true to cause a message to be written; otherwise, false.
A message to write.
A category name used to organize the output.
2
Enables communication with a debugger. This class cannot be inherited.
1
Signals a breakpoint to an attached debugger.
The is not set to break into the debugger.
1
Gets a value that indicates whether a debugger is attached to the process.
true if a debugger is attached; otherwise, false.
1
Launches and attaches a debugger to the process.
true if the startup is successful or if the debugger is already attached; otherwise, false.
The is not set to start the debugger.
1
Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.
1
Initializes a new instance of the class.
One of the values that specifies how to display the member.
is not one of the values.
Gets the display state for the attribute.
One of the values.
2
Provides display instructions for the debugger.
2
Show the element as collapsed.
Never show the element.
Do not display the root element; display the child elements if the element is a collection or array of items.
Determines how a class or field is displayed in the debugger variable windows.
1
Initializes a new instance of the class.
The string to be displayed in the value column for instances of the type; an empty string ("") causes the value column to be hidden.
Gets or sets the name to display in the debugger variable windows.
The name to display in the debugger variable windows.
2
Gets or sets the type of the attribute's target.
The attribute's target type.
is set to null.
2
Gets or sets the type name of the attribute's target.
The name of the attribute's target type.
2
Gets or sets the string to display in the type column of the debugger variable windows.
The string to display in the type column of the debugger variable windows.
2
Gets the string to display in the value column of the debugger variable windows.
The string to display in the value column of the debugger variable.
2
Specifies the . This class cannot be inherited.
1
Initializes a new instance of the class.
Identifies a type or member that is not part of the user code for an application.
1
Initializes a new instance of the class.
Instructs the debugger to step through the code instead of stepping into the code. This class cannot be inherited.
1
Initializes a new instance of the class.
Specifies the display proxy for a type.
1
Initializes a new instance of the class using the type name of the proxy.
The type name of the proxy type.
Initializes a new instance of the class using the type of the proxy.
The proxy type.
is null.
Gets the type name of the proxy type.
The type name of the proxy type.
2
Gets or sets the target type for the attribute.
The target type for the attribute.
is set to null.
2
Gets or sets the name of the target type.
The name of the target type.
2