Aracılığıyla paylaş


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
Public class ConditionalAttribute Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined.
Public class Debug Provides a set of methods and properties that help debug your code. This class cannot be inherited.
Public class DebuggableAttribute Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited.
Public class Debugger Enables communication with a debugger. This class cannot be inherited.
Public class DebuggerBrowsableAttribute Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.
Public class DebuggerDisplayAttribute Determines how a class or field is displayed in the debugger variable windows.
Public class DebuggerHiddenAttribute Hides the code from the debugger. This class cannot be inherited.
Public class DebuggerNonUserCodeAttribute Identifies a type or member that is not part of the user code for an application.
Public class DebuggerStepThroughAttribute Instructs the debugger to step through the code instead of into the code. This class cannot be inherited.
Public class DebuggerTypeProxyAttribute Specifies the display proxy for a type.
Public class StackFrame Provides information about a stack frame, which represents a function call on the call stack for the current thread.
Public class StackTrace Represents a stack trace, which is an ordered collection of one or more stack frames.
Public class Stopwatch Provides a set of methods and properties that you can use to accurately measure elapsed time.

Enumerations

  Enumeration Description
Public enumeration DebuggableAttribute.DebuggingModes Specifies the debugging mode for the just-in-time (JIT) compiler.
Public enumeration DebuggerBrowsableState Provides display instructions for the debugger.