Debug Class
Provides a set of methods and properties that help debug your code. This class cannot be inherited.
Definition
| public sealed class Debug: Object |
Members Table
The following table lists the members exposed by the Debug object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Assert | Overloaded. Checks for a condition and breaks the debugger if the condition is false. |
| Close | Flushes the output buffer and then closes the Listeners. |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| Fail | Overloaded. Sends out the specified error message and breaks the debugger. |
| FailAt | Overloaded. Sends out the specified error message and breaks the debugger. |
| Flush | Flushes the output buffer and causes buffered data to write to the Listeners collection. |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Indent | Increases the current IndentLevel by one. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
| Unindent | Decreases the current IndentLevel by one. |
| Write | Overloaded. |
| WriteIf | Overloaded. |
| WriteLine | Overloaded. |
| WriteLineIf | Overloaded. |
Properties
| Property | Description |
|---|
| AutoFlush | Gets or sets a value indicating whether Flush should be called on the Listeners after every write. |
| IndentLevel | Gets or sets the indent level. |
| IndentSize | Gets or sets the number of spaces in an indent. |
| Listeners | Gets the collection of listeners that is monitoring the debug output. |
Inheritance Hierarchy
ObjectDebug
Class Information
| Namespace | System.Diagnostics |
|---|
| Flash Library | corlib.scl |
|---|
| Flash Library Version | 2.0.0.2466 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|