Core Interfaces
The following interfaces are the core interfaces for extending debugger by using the Visual Studio SDK.
Discussion
These interfaces are primarily used to create the debug engine (DE). They are organized here by categories:
Breakpoints
Contexts
Core Server
Debug Engines
Documents
Events
Expressions
Memory
Modules
Ports
Processes
Programs
Properties
Stack Frames
Threads
Type Visualizers
The entities that can implement the interfaces are:
Debug Engine (DE)
Port Supplier (PS)
Expression Evaluator (EE)
Visual Studio (VS)
Breakpoints
These interfaces are related to the implementation and tracking of breakpoints.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a breakpoint bound to a memory location. |
|
DE |
Sent by the DE when a breakpoint is bound to a memory location. |
|
VS |
Represents a document checksum for a breakpoint request. |
|
DE |
Sent by the DE when a breakpoint fails to be bound to a memory location. |
|
DE |
Sent by the DE when a breakpoint is reached. |
|
VS |
Represents a request for a breakpoint; used in creating a pending breakpoint. |
|
VS |
Represents a request for a breakpoint; used in creating a pending breakpoint. |
|
DE |
Represents the information used to bind a breakpoint. |
|
DE |
Sent by the DE when a breakpoint is unbound from a memory location. |
|
DE |
Represents an invalid breakpoint (returned by IDebugBreakpointErrorEvent2). |
|
DE |
Represents the resolution information about an invalid breakpoint. |
|
DE |
Represents a position in a function where a breakpoint is set. |
|
DE |
Represents a breakpoint that is to be bound; used in creating a bound breakpoint. |
|
DE |
Represents an enumeration over a set of bound breakpoints. |
|
DE |
Represents an enumeration over a set of breakpoints that could not be bound to a memory location. |
Contexts
These interfaces represent various kinds of contexts within the program being debugged.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents the starting position of a code instruction. |
|
DE |
Extends the IDebugCodeContext2 interface to enable the retrieval of module and process interfaces. |
|
VS, DE |
Represents a position in a document. |
|
DE |
Represents the context in which to evaluate an expression. |
|
DE |
Represents the starting location in memory of a collection of bytes. |
|
DE |
Represents a stack frame context at a breakpoint or exception. |
|
DE |
Represents a stack frame context at a breakpoint or exception. |
|
DE |
Represents an enumeration over a set of code contexts. |
Core Server
These interfaces represent the machine on which a program is being debugged. These are implemented by Visual Studio but can be called into by debug engines.
Interface |
Implemented by |
Description |
---|---|---|
VS |
Provides access to ports and port suppliers as well as information about the computer. |
|
VS |
Represents an IDebugCoreServer2 that supports remote debugging. |
Debug Engines
These interfaces represent debug engines and their associated events.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a custom debug engine. |
|
DE |
Represents a custom debug engine that supports loading of symbols, JustMyCode, and exceptions. |
|
DE |
Sent by each new instance of the DE to indicate it is ready to handle debugging tasks. |
|
DE |
Represents a custom debug engine that supports launching programs. |
|
DE, PS |
Represents a program node that handles multiple debug engines. |
|
DE |
Provides a way for the SDM to obtain an interface to the debug engine from a thread, program, or stack frame. |
Documents
These interfaces represent documents (source files) and their associated elements.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Sent by the DE to request a document to be opened. |
|
DE |
Represents a stream of disassembled instructions from a document. |
|
VS, DE |
Represents a document supplied by the DE, specifying a name and a class ID (CLSID). |
|
DE, EE |
Represents a checksum for a debug document and enables passing the checksum between components. |
|
VS, DE |
Represents a document context, a position within a document corresponding to a particular statement and code context. |
|
VS, DE |
Represents a general position within a document. |
|
VS |
Represents a position in a source file as a character offset. |
|
VS, DE |
Represents a text document supplied by the DE (derived from IDebugDocument2), supplying the actual text. |
|
DE |
Sent by the DE to specify changes to a source file that is in memory. |
Events
These interfaces represent all events that are sent between the DE and the session debug manager (SDM).
Interface |
Implemented by |
Description |
---|---|---|
DE |
Sent by the DE to request a document to be opened. |
|
DE |
The debug engine (DE) sends this interface to the session debug manager (SDM) to set the status bar message during symbol loads. |
|
DE |
Sent by the DE when a break in the program has been completed. |
|
DE |
Sent by the DE when a breakpoint is bound. |
|
DE |
Sent by the DE when a breakpoint fails to be bound. |
|
DE |
Sent by the DE when a breakpoint is reached. |
|
DE |
Sent by the DE when a breakpoint is unbound. |
|
DE |
Sent by the DE to determine whether it should stop at a particular location. |
|
DE |
Sent by the DE to specify changes to a source file that is in memory. |
|
DE |
Sent by each new instance of the DE to indicate it is ready to handle debugging tasks. |
|
DE |
Sent by the DE to indicate the program being debugged is ready to execute the first instruction. |
|
DE |
An interface that is used by other event interfaces, which might return an error, to provide human-readable error messages. |
|
DE, PS |
Base interface from which all other event interfaces are derived. |
|
VS |
Represents an interface implemented by the SDM to which events (expressed as objects implementing a particular event interface) are sent. |
|
DE |
Sent by the DE when an exception has occurred in the program being debugged. |
|
DE |
Sent by the DE when an asynchronous expression evaluation is complete. |
|
IDebugFindSymbolEvent2 |
|
OBSOLETE. DO NOT USE. |
DE |
Sent by the DE when processing for an intercepted exception has been completed. |
|
DE |
Sent by the DE when a program has completed loading. |
|
DE |
Sent by the DE to have the IDE display an informational message to the user. |
|
DE |
Sent by the DE when a module is loaded or unloaded. |
|
DE |
Signals the Visual Studio debugger UI to warn the user that symbols could not be located for the launched executable. |
|
DE |
Sent by the DE to have the IDE display an arbitrary string. |
|
VS, DE |
Sent by a port to communicate port events to any listener. |
|
DE, PS |
Sent by the DE or port when a process has been created. |
|
DE, PS |
Sent by the DE or port when a process has been destroyed. |
|
DE, PS |
Sent by the DE or port when a program has been created. |
|
DE, PS |
Sent by the DE or port when a program has been destroyed. |
|
DE |
Enables a debug engine to override the default behavior of the Visual Studio UI when you end a debug session. |
|
DE |
Sent from the debug engine (DE) to the session debug manager (SDM) when the name of a program changes. |
|
DE |
Sent by the DE when a new property (represented by the IDebugProperty2 interface) has been created. |
|
DE |
Sent by the DE when a property has been destroyed. |
|
DE |
Sent by the DE when stepping out of or over a function so the return value can be correctly displayed. |
|
VS |
Enables debug engines to read metric settings remotely. |
|
DE |
Sent by the DE when a step into, over, or out of an instruction has been completed. |
|
DE |
Sent by the DE to indicate the success or failure of loading symbols for a module. |
|
DE |
Sent by the DE when a thread has been created. |
|
DE |
Sent by the DE when a thread has been destroyed. |
|
DE |
Sent by the DE when a thread has changed its name. |
Expressions
These interfaces represent expressions to be evaluated in a particular context.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents an expression to be evaluated. Obtained from the IDebugExpressionContext2 interface. |
|
DE |
Represents a context in which an expression is evaluated. Obtained from the IDebugStackFrame2 interface. |
|
DE |
Sent by the DE when an asynchronous expression evaluation is complete. |
Memory
These interfaces represent sequences of bytes in memory.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a sequence of bytes in memory that can be read from or written to. |
|
DE |
Represents a location in memory of a sequence of bytes. |
Modules
These interfaces represent a module, which corresponds to an executable or .DLL file.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a single executable or DLL. |
|
DE |
Represents an IDebugModule2 that supports symbols. |
|
DE |
Sent by the DE when a module is loaded or unloaded. |
|
DE |
Represents the source server information that is contained in a PDB file. |
|
DE |
Represents an enumeration over a set of modules that are known by an IDebugProgram2. |
Ports
These interfaces represent ports and port suppliers.
Interface |
Implemented by |
Description |
---|---|---|
VS, PS |
Represents the default port on the local computer. |
|
VS |
Enables a debug engine that uses DCOM to ask the Visual Studio UI to make sure that the firewall will not block remote debugging. |
|
VS, PS |
Represents a port. |
|
PS |
Sent by a port to communicate port events to any listener. |
|
PS |
Represents a port that can launch and terminate processes. |
|
PS |
Used to register and unregister programs with a port; allows the port to track programs currently being debugged. |
|
PS |
Represents a customized UI for selecting the port. |
|
VS |
Represents a request for a port from which a new port will be created or located. |
|
PS |
Represents a supplier of ports. |
|
PS |
Represents a supplier of ports that can persist (save to disk) information about the ports it created. |
|
PS |
Enables the Visual Studio UI to display text inside the Transport Information section of the Attach to Process dialog box. |
|
VS |
Allows querying for information about the target computer. |
|
VS, PS |
Represents an enumeration over a set of ports. |
|
VS |
Represents an enumeration over a set of port suppliers. |
Processes
These interfaces represent processes, a single executable that contains one or more programs.
Interface |
Implemented by |
Description |
---|---|---|
PS, DE |
Represents a process that is running on a computer. |
|
PS, DE |
Represents a process that actively supports debugging (used to replace Step, Continue, and Execute methods on the IDebugProgram2 interface). |
|
DE, PS |
Sent by the DE or port when a process has been created. |
|
DE, PS |
Sent by the DE or port when a process has been destroyed. |
|
PS |
Represents a process that must track which session is attached to it. |
|
PS |
Represents an enumeration of a set of processes on a port. |
Programs
These interfaces represent programs, logical units of execution that do not necessarily correspond to a physical executable or module.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents an IDebugProgram2 that needs to work in concert with other programs being debugged at the same time. |
|
DE, PS |
Represents a logical unit of execution. |
|
DE, PS |
Sent by the DE or port when a program has been created. |
|
DE, PS |
Sent by the DE or port when a program has been destroyed. |
|
DE, PS |
Represents an IDebugProgramNode2 that can be handled by multiple debug engines. |
|
PS |
Represents an IDebugProgram2 that must be able to track which session is attached to it. |
|
DE, PS |
Represents an IDebugProgram2 that can return information about the process in which it is running. |
|
DE, PS |
Represents a program that can be debugged. |
|
DE, PS |
Allows a program node to be notified of an attempt to attach to the associated program. |
|
DE |
Provides a way for the SDM to query a DE about the programs controlled by that DE. |
|
VS |
Used by DEs to register programs with the SDM to show they are being debugged. |
|
DE, PS |
Represents an IDebugProgramNode2 that can marshal interfaces across thread or process boundaries. |
|
DE, PS |
Represents an enumeration of a set of programs. |
Properties
These interfaces represent properties, a value associated with a particular context, usually the result of an expression evaluation.
Interface |
Implemented by |
Description |
---|---|---|
EE |
Represents an IDebugProperty2 that can display its value in a custom way. |
|
DE |
Represents a value of a stack frame, document, or the result of an expression evaluation. |
|
DE |
Represents an IDebugProperty2 that supports arbitrarily long strings. |
|
DE |
Sent by the DE when a new property (represented by the IDebugProperty2 interface) has been created. |
|
DE |
Sent by the DE when a property has been destroyed. |
|
DE |
Represents a reference to a property which can exist outside any particular stack frame. |
|
DE |
Represents an enumeration over a set of DEBUG_PROPERTY_INFO structures which describe variables, registers, parameters, and expressions. |
|
DE |
Represents an enumeration over a set of DEBUG_REFERENCE_INFO structures. |
Stack Frames
These interfaces represent a stack frame, a context in which a breakpoint or exception has occurred.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a context in which a breakpoint or exception has occurred. |
|
DE |
Represents an IDebugStackFrame2 which can handle intercepted exceptions. |
|
DE |
Represents an enumeration over the set of CODE_PATH structures which specify the function call sequence used to arrive at a particular stack frame. |
|
DE |
Represents an enumeration over a set of FRAMEINFO structures, which describe stack frames. |
Threads
These interfaces represent threads and their associated events.
Interface |
Implemented by |
Description |
---|---|---|
DE |
Represents a thread of execution. |
|
DE |
Sent by the DE when a thread has been created. |
|
DE |
Sent by the DE when a thread has been destroyed. |
|
DE |
Sent by the DE when a thread has changed its name. |
|
DE |
Represents an enumeration over a set of threads. |
Type Visualizers
These interfaces provide support for type visualizers. These interfaces are typically implemented by an expression evaluator.
Interface |
Implemented by |
Description |
---|---|---|
EE |
Represents an array of bytes to be presented to a type visualizer. |
|
EE |
Provides methods for getting access to data to be passed to a type visualizer. |
|
EE |
Represents a property that provides access to IPropertyProxyEESide implementations. |
See Also
Reference
API Reference (Visual Studio Debugging)