Debugging Tools for Windows

GetCodeLevel

The GetCodeLevel method returns the current code level and is mainly used when stepping through code.

HRESULT
  IDebugControl::GetCodeLevel(
    OUT PULONG  Level
    );

Parameters

Level
Receives the current code level. Level can take one of the values in the following table.
Value Description
DEBUG_LEVEL_SOURCE Source mode. When stepping through code on the target, the size of a single step will be a line of source code.
DEBUG_LEVEL_ASSEMBLY Assembly mode. When stepping through code on the target, the size of a single step will be a single processor instruction.

Return Value

S_OK
The method was successful.

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

Interface Version

GetCodeLevel is available in all versions of IDebugControl.

Comments

For more information about the code level, see Using Source Files.

Requirements

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

See Also

SetCodeLevel

Build machine: CAPEBUILD