System.Diagnostics Namespace

July 28, 2014

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.

  ClassDescription
Public classConditionalAttributeIndicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined.
Public classDebugProvides a set of methods and properties that help debug your code. This class cannot be inherited.
Public classDebuggableAttributeModifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited.
Public classDebuggerEnables communication with a debugger. This class cannot be inherited.
Public classDebuggerBrowsableAttributeDetermines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.
Public classDebuggerDisplayAttributeDetermines how a class or field is displayed in the debugger variable windows.
Public classDebuggerHiddenAttributeHides the code from the debugger. This class cannot be inherited.
Public classDebuggerNonUserCodeAttributeIdentifies a type or member that is not part of the user code for an application.
Public classDebuggerStepThroughAttributeInstructs the debugger to step through the code instead of into the code. This class cannot be inherited.
Public classDebuggerTypeProxyAttributeSpecifies the display proxy for a type.
Public classStackFrameProvides information about a stack frame, which represents a function call on the call stack for the current thread.
Public classStackTraceRepresents a stack trace, which is an ordered collection of one or more stack frames.
Public classStopwatchProvides a set of methods and properties that you can use to accurately measure elapsed time.

  EnumerationDescription
Public enumerationDebuggableAttribute.DebuggingModesSpecifies the debugging mode for the just-in-time (JIT) compiler.
Public enumerationDebuggerBrowsableStateProvides display instructions for the debugger.

Show:
© 2014 Microsoft