diff --git a/src/coreclr/vm/debugdebugger.cpp b/src/coreclr/vm/debugdebugger.cpp index cd33e4f168871f..aba16c6007de25 100644 --- a/src/coreclr/vm/debugdebugger.cpp +++ b/src/coreclr/vm/debugdebugger.cpp @@ -298,14 +298,19 @@ extern "C" void QCALLTYPE AsyncHelpers_AddContinuationToExInternal( _ASSERTE(pException != NULL); // populate exception with information from the continuation object EECodeInfo codeInfo((PCODE)diagnosticIP); - _ASSERTE(codeInfo.IsValid()); - MethodDesc* methodDesc = codeInfo.GetMethodDesc(); - StackTraceInfo::AppendElement( - pException, - (UINT_PTR)diagnosticIP, - 0, - methodDesc, - NULL); + // Interpreter diagnostic IP is not recognized by codeInfo, so this does not work with interpreted code. + // This is a temporary measure to enable testing and once the issue is fixed this condition should be replaced by an assert. + // Tracking issue: https://github.com/dotnet/runtime/issues/124044 + if (codeInfo.IsValid()) + { + MethodDesc* methodDesc = codeInfo.GetMethodDesc(); + StackTraceInfo::AppendElement( + pException, + (UINT_PTR)diagnosticIP, + 0, + methodDesc, + NULL); + } END_QCALL; }