diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs index 591541a29b..4581cdb62f 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs @@ -167,6 +167,9 @@ namespace Debugger throw new EvalSetupException("Can not evaluate in optimized code"); } else if ((uint)e.ErrorCode == 0x80131C28) { throw new EvalSetupException("Object is in wrong AppDomain"); + } else if ((uint)e.ErrorCode == 0x8013130A) { + // Happens on getting of Sytem.Threading.Thread.ManagedThreadId; See SD2-1116 + throw new EvalSetupException("Function does not have IL code"); }else { throw; }