for (ULONG32 i = 0; i < cElements; ++i)
{
- IfFailRet(cb(mdMethodDefNil, nullptr, nullptr, nullptr, true, "[" + std::to_string(i) + "]"));
+ ToRelease<ICorDebugValue> pElementValue;
+ pArrayValue->GetElementAtPosition(i, &pElementValue);
+ IfFailRet(cb(mdMethodDefNil, nullptr, nullptr, pElementValue, false, "[" + std::to_string(i) + "]"));
}
return S_OK;
return S_OK;
std::string className;
- TypePrinter::GetTypeOfValue(pType, className);
+ if (pType)
+ TypePrinter::GetTypeOfValue(pType, className);
ICorDebugValue *pResultValue = nullptr;