Expand Minimize
This topic has not yet been rated - Rate this topic

IDebugControl::GetCodeLevel method

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

Syntax


HRESULT GetCodeLevel(
  [out]  PULONG Level
);

Parameters

Level [out]

Receives 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
SetCodeLevel

 

 

Send comments about this topic to Microsoft

Build date: 4/9/2013

© 2013 Microsoft. All rights reserved.