Browse Source

Fix #471: Debugger console crashes with "DebuggerException: Evaluation did not return any value" when invoking a method returning `void`

pull/474/head
Andreas Weizel 11 years ago
parent
commit
35ed1ef0d0
  1. 2
      src/AddIns/Debugger/Debugger.Core/Eval.cs

2
src/AddIns/Debugger/Debugger.Core/Eval.cs

@ -78,7 +78,7 @@ namespace Debugger @@ -78,7 +78,7 @@ namespace Debugger
case EvalState.Evaluating: throw new GetValueException("Evaluating...");
case EvalState.EvaluatedSuccessfully: return result;
case EvalState.EvaluatedException: return result;
case EvalState.EvaluatedNoResult: throw new DebuggerException("Evaluation did not return any value.");
case EvalState.EvaluatedNoResult: throw new GetValueException("no result");
case EvalState.EvaluatedTimeOut: throw new GetValueException("Timeout");
default: throw new DebuggerException("Unknown state");
}

Loading…
Cancel
Save