System.Diagnostics Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
The System.Diagnostics namespace provides classes that allow you debug your applications.
The System.Diagnostics namespace provides classes that allow you to debug your application and to trace the execution of your code. For more information, see the System.Diagnostics.Debug class.
Platform Notes
To find documentation for the StopWatch class present in XNA Framework for Xbox 360, see .NET Framework documentation for StopWatch.
Classes
Class | Description | |
---|---|---|
ConditionalAttribute | Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined. | |
Debug | Provides a set of methods and properties that help debug your code. This class cannot be inherited. | |
DebuggableAttribute | Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited. | |
Debugger | Enables communication with a debugger. This class cannot be inherited. | |
DebuggerBrowsableAttribute | Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited. | |
DebuggerDisplayAttribute | Determines how a class or field is displayed in the debugger variable windows. | |
DebuggerHiddenAttribute | Hides the code from the debugger. This class cannot be inherited. | |
DebuggerNonUserCodeAttribute | Identifies a type or member that is not part of the user code for an application. | |
DebuggerStepThroughAttribute | Instructs the debugger to step through the code instead of into the code. This class cannot be inherited. | |
DebuggerTypeProxyAttribute | Specifies the display proxy for a type. | |
StackFrame | Provides information about a stack frame, which represents a function call on the call stack for the current thread. | |
StackTrace | Represents a stack trace, which is an ordered collection of one or more stack frames. | |
Stopwatch | Provides a set of methods and properties that you can use to accurately measure elapsed time. |
Enumerations
Enumeration | Description | |
---|---|---|
DebuggableAttribute.DebuggingModes | Specifies the debugging mode for the just-in-time (JIT) compiler. | |
DebuggerBrowsableState | Provides display instructions for the debugger. |