Debugging Tools for Windows

SetCodeLevel

The SetCodeLevel method sets the current code level and is mainly used when stepping through code.

HRESULT
  IDebugControl::SetCodeLevel(
    IN ULONG  Level
    );

Parameters

Level
Specifies 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

SetCodeLevel 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

GetCodeLevel

Build machine: CAPEBUILD