Debugging Tools for Windows

OutputCurrentState

The OutputCurrentState method prints the current state of the current target to the debugger console.

HRESULT
  IDebugControl::OutputCurrentState(
    IN ULONG  OutputControl,
    IN ULONG  Flags
    );

Parameters

OutputControl
Specifies which clients to send the output to. For possible values see DEBUG_OUTCTL_XXX.
Flags
Specifies the bit set that determines the information to print to the debugger console. Flags can be any combination of values from the following table.
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.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

OutputCurrentState is available in all versions of IDebugControl.

Comments

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.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD