Browse Source

fix refresh local var pad

pull/4/head
eusebiu 15 years ago
parent
commit
8aa19c4dcd
  1. 5
      src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs

5
src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs

@ -67,13 +67,12 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
localVarList.WatchItems.Clear(); localVarList.WatchItems.Clear();
return; return;
} }
localVarList.WatchItems.Clear();
using(new PrintTimes("Local Variables refresh")) { using(new PrintTimes("Local Variables refresh")) {
try { try {
Utils.DoEvents(debuggedProcess); Utils.DoEvents(debuggedProcess);
foreach (var item in new StackFrameNode(debuggedProcess.SelectedStackFrame).ChildNodes) { foreach (var item in new StackFrameNode(debuggedProcess.SelectedStackFrame).ChildNodes) {
if (!localVarList.WatchItems.ContainsItem(item)) localVarList.WatchItems.Add(item);
localVarList.WatchItems.Add(item);
} }
} }
catch(AbortedBecauseDebuggeeResumedException) { } catch(AbortedBecauseDebuggeeResumedException) { }

Loading…
Cancel
Save