IDebugControl2::SetCodeLevel method (dbgeng.h)
The SetCodeLevel method sets the current code level and is mainly used when stepping through code.
Syntax
HRESULT SetCodeLevel(
[in] ULONG Level
);
Parameters
[in] 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
This method can also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
For more information about the code level, see Using Source Files.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |