From a509660b8a9b555006834684d0c7d822e2498e09 Mon Sep 17 00:00:00 2001 From: mkonicek Date: Tue, 15 Mar 2011 12:39:52 +0100 Subject: [PATCH] Handling an expression which happens when stepping too fast. --- .../Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs index d14e4510e0..899d258e73 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs @@ -38,7 +38,14 @@ namespace Debugger.AddIn.Visualizers.Graph { if (this.Expression == null) throw new DebuggerVisualizerException("Cannot evaluate property with missing Expression"); - Value debuggerVal = this.Expression.Evaluate(WindowsDebugger.CurrentProcess); + Value debuggerVal; + try { + debuggerVal = this.Expression.Evaluate(WindowsDebugger.CurrentProcess); + } catch (System.Exception ex) { + this.Value = "Exception: " + ex.Message; + this.IsEvaluated = true; + return; + } this.IsAtomic = debuggerVal.Type.IsAtomic(); this.IsNull = debuggerVal.IsNull;