Debugging Tools for Windows |
The OutputCurrentState method prints the current state of the current target to the debugger console.
HRESULT
IDebugControl::OutputCurrentState(
IN ULONG OutputControl,
IN ULONG Flags
);
Flag | Description |
---|---|
DEBUG_CURRENT_SYMBOL | Symbol string for the address of the current instruction. |
DEBUG_CURRENT_DISASM | Disassembly of the current instruction. |
DEBUG_CURRENT_REGISTERS | Current register values. |
DEBUG_CURRENT_SOURCE_LINE | File name and line number of the source corresponding to the current instruction. |
Alternatively, Flags can be set to DEBUG_CURRENT_DEFAULT. This value includes all of the above flags.
This method may also return error values. See Return Values for more details.
OutputCurrentState is available in all versions of IDebugControl.
Setting the flags contained in Flags merely allows the information to be printed. The information will not always be printed (for example, it will not be printed if it is not available).
This is the same status information that is printed when breaking into the debugger.
For more information, see Target Information.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.