Expand Minimize

IDebugControl::SetCodeLevel method

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

Syntax


HRESULT SetCodeLevel(
  [in]  ULONG Level
);

Parameters

Level [in]

Specifies the current code level. Level can take one of the values in the following table.

ValueDescription

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

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

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

Requirements

Header

Dbgeng.h (include Dbgeng.h)

See also

IDebugControl
IDebugControl2
IDebugControl3
GetCodeLevel

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft