diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs index cca25b71d4..82ab0d5eb6 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs @@ -138,8 +138,16 @@ namespace Debugger if (!corThread.Is()) return false; // Is the debuggee .NET 2.0? if (LastFunction == null) return false; // Is frame available? It is not at StackOverflow - corThread.CastTo().InterceptCurrentException(LastFunction.CorILFrame.CastTo()); - return true; + try { + corThread.CastTo().InterceptCurrentException(LastFunction.CorILFrame.CastTo()); + return true; + } catch (COMException e) { + // 0x80131C02: Cannot intercept this exception + if ((uint)e.ErrorCode == 0x80131C02) { + return false; + } + throw; + } } internal Stepper GetStepper(ICorDebugStepper corStepper)