Debugger Objects

The automation object model provides a Debugger object that enables you to control the Visual Studio debugger. A Debugger instance can be obtained through the DTE.Debugger property:

image

With a valid Debugger object, you can do the following:

• Set breakpoints

• Start and stop the debugger for a given process

• Control the various execution stepping actions supported by the debugger such as Step Into, Step Over, and Step Out

• Issue the Run to Cursor command to the debugger

• Query the debugger for its current mode (for example, break mode, design mode, or run mode)

The following code starts the debugger if it isn’t already started: ...

Get Microsoft® Visual Studio® 2010 Unleashed 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.