Permalink
Browse files

remove crazy exception handling from WindowsDebugger.GetValueFromName

  • Loading branch information...
1 parent 277c8ad commit 0b93199ba2a23488c9ab02eae74aad7cffc00084 @siegfriedpammer siegfriedpammer committed Mar 1, 2012
Showing with 5 additions and 9 deletions.
  1. +5 −9 src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs
@@ -427,15 +427,11 @@ public Value GetValueFromName(string variableName)
}
var frame = debuggedProcess.GetCurrentExecutingFrame();
- try {
- object data = debuggerDecompilerService.GetLocalVariableIndex(frame.MethodInfo.DeclaringType.MetadataToken,
- frame.MethodInfo.MetadataToken,
- variableName);
- // evaluate expression
- return ExpressionEvaluator.Evaluate(variableName, SupportedLanguage.CSharp, frame, data);
- } catch {
- throw;
- }
+ object data = debuggerDecompilerService.GetLocalVariableIndex(frame.MethodInfo.DeclaringType.MetadataToken,
+ frame.MethodInfo.MetadataToken,
+ variableName);
+ // evaluate expression
+ return ExpressionEvaluator.Evaluate(variableName, SupportedLanguage.CSharp, frame, data);
}
/// <summary>

0 comments on commit 0b93199

Please sign in to comment.