Browse Source

Handling an expression which happens when stepping too fast.

pull/15/head
mkonicek 15 years ago
parent
commit
a509660b8a
  1. 9
      src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs

9
src/AddIns/Debugger/Debugger.AddIn/Visualizers/Graph/ObjectGraph/ObjectGraphProperty.cs

@ -38,7 +38,14 @@ namespace Debugger.AddIn.Visualizers.Graph @@ -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;

Loading…
Cancel
Save