Browse Source

fix evaluation

pull/16/head
Eusebiu Marcu 14 years ago
parent
commit
1c2c8970f2
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

4
src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

@ -1125,10 +1125,10 @@ namespace ICSharpCode.SharpDevelop.Services @@ -1125,10 +1125,10 @@ namespace ICSharpCode.SharpDevelop.Services
// get local variable index and store it in UserData property - used in evaluator
object data = null;
IEnumerable<ILVariable> list;
DecompileInformation externalData = (DecompileInformation)DebuggerService.ExternalDebugInformation[typeToken];
if (externalData == null)
if (DebuggerService.ExternalDebugInformation == null || !DebuggerService.ExternalDebugInformation.ContainsKey(typeToken))
return null;
DecompileInformation externalData = (DecompileInformation)DebuggerService.ExternalDebugInformation[typeToken];
if (externalData.LocalVariables.TryGetValue(methodToken, out list)) {
var variable = list.FirstOrDefault(v => v.Name == targetName);
if (variable != null && variable.OriginalVariable != null) {

Loading…
Cancel
Save