Namespace: System.Diagnostics

The System.Diagnostics namespace provides classes that allow you to interact with system processes, event logs, and performance counters.

The System.Diagnostics namespace also provides classes that allow you to debug your application and to trace the execution of your code. For more information, see the Trace and Debug classes.

Members of System.Diagnostics Namespace

Classes
Class Description
class BooleanSwitch Provides a simple on/off switch that controls debugging and tracing output. 
class ConditionalAttribute Indicates to compilers that a method is callable if a specified preprocessing identifier is applied to the method. 
class Debug Provides a set of methods and properties that help debug your code. This class cannot be inherited. 
class DebuggableAttribute Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited. 
class Debugger Enables communication with a debugger. This class cannot be inherited. 
class DebuggerHiddenAttribute Specifies the DebuggerHiddenAttribute. This class cannot be inherited. 
class DebuggerStepThroughAttribute Specifies the DebuggerStepThroughAttribute. This class cannot be inherited. 
class DefaultTraceListener Provides the default output methods and behavior for tracing. 
class DiagnosticsConfigurationHandler This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.

 
class Process Provides access to local and remote processes and enables you to start and stop local system processes. 
class ProcessStartInfo Specifies a set of values used when starting a process. 
class StackFrame Provides information about a StackFrame
class StackTrace Acquires a stack trace. 
class Switch Provides an base class to create new debugging and tracing switches. 
class TextWriterTraceListener Directs tracing or debugging output to a TextWriter or to a Stream, such as Console.Out or FileStream
class Trace Provides a set of methods and properties that help you trace the execution of your code. This class cannot be inherited. 
class TraceListener Provides the base class for the listeners who monitor trace and debug output. 
class TraceListenerCollection Provides a thread-safe list of TraceListener objects. 
class TraceSwitch Provides a multilevel switch to control tracing and debug output without recompiling your code. 

Enumerations
Enumeration Description
enumeration TraceLevel Specifies what messages to output for the Debug, Trace and TraceSwitch classes. 

Namepace hierarchy

Copyright (c) 2002 Microsoft Corporation. All rights reserved.