March 2002
Intermediate to advanced
864 pages
31h 8m
English
Debugger
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); }