System.Diagnostics Namespace

The System.Diagnostics namespace provides classes and enumerations you can use to interact with system processes, event logs, and performance counters.

Classes

Name Description
Public Class ConditionalAttribute Indicates to compilers that a particular method is callable if a specified preprocessing identifier is applied to that method.
Public Class DebuggableAttribute Modifies code generation for just-in-time (JIT) runtime debugging.
Public Class Debugger Enables communication with a debugger.
Public Class DebuggerBrowsableAttribute Specifies whether a particular section of code is browsable.
Public Class DebuggerDisplayAttribute Controls what is displayed for a specific class or field in the debugger's data windows.
Public Class DebuggerHiddenAttribute Specifies hidden attributes of the debugger.
Public Class DebuggerNonUserCodeAttribute Implements an attribute that marks code as not being written by the developer who wrote the current application.
Public Class DebuggerStepperBoundaryAttribute Immediately precedes code that is to be executed in run mode, as opposed to step mode.
Public Class DebuggerStepThroughAttribute Enables the debugger to step through code line by line during the debugging process.
Public Class DebuggerTypeProxyAttribute Specifies the display proxy for a particular type.

Enumerations

Name Description
Public Enumeration DebuggableAttribute.DebuggingModes Specifies the debugging modes supported in the .NET Micro Framework.
Public Enumeration DebuggerBrowsableState Specifies the state of a node in the debugger.

Remarks

Although the .NET Micro Framework supports many of the classes contained in the Diagnostics namespace, it also provides the Debug class for your debugging needs. The Debug class was created especially for the .NET Micro Framework, so you are strongly encouraged to use it instead of the classes in Diagnostics whenever you need to debug your .NET Micro Framework applications.