Name

Debugger

Synopsis

This class enables you to control the debugger from the debugged code. If a debugger is executing your code, IsAttached returns true. Break() sets a breakpoint and causes the debugger to pause. Log() logs output to the debugger window. The Launch() method launches the debugger and attaches it to your process, returning true if successful or if the debugger is already attached. Launch() returns false if the debugger could not be attached.

public sealed class Debugger {
// Public Constructors
   public method Debugger();  
// Public Static Fields
   public static readonly field string DefaultCategory;  
// Public Static Properties
   public static field bool IsAttached{get; } 
// Public Static Methods
   public static method void Break();  
   public static method bool IsLogging();  
   public static method bool Launch();  
   public static method void Log(int level, string category, 
        string message);  
}

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.