ICorDebugILFrame4::EnumerateLocalVariablesEx Method

.NET Framework (current version)

[Supported in the .NET Framework 4.5.2 and later versions]

Gets an enumerator for the local variable in the frame, and optionally includes variables added in profiler ReJIT instrumentation.

HRESULT EnumerateLocalVariablesEx(  
   [in] ILCodeKind flags,   
   [out] ICorDebugValueEnum **ppValueEnum  


[in] An ILCodeKind enumeration member that specifies whether variables added in profiler ReJIT instrumentation are included in the frame.

[out] A pointer to the address of an "ICorDebugValueEnum" object that is the enumerator for the local variables in this frame.

This method is similar to the EnumerateLocalVariables method, except that it optionally accesses variables added in profiler ReJIT instrumentation. Setting flags to ILCODE_ORIGINAL_IL is equivalent to calling ICorDebugILFrame::EnumerateLocalVariables. Setting flags to ILCODE_REJIT_IL allows the debugger to access the local variables added in profiler ReJIT instrumentation. If the intermediate language (IL) is not instrumented, the enumeration is empty and the method returns S_OK.

The enumerator may not include all of the local variables in the running method, since some of them may not be active.

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5.2

ICorDebugILFrame4 Interface
Debugging Interfaces
ReJIT: A How-To Guide