diff --git a/src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs b/src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs index 746108e4d2..c2669f3ce7 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Pads/LocalVarPad.cs @@ -68,13 +68,12 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads localVarList.WatchItems.Clear(); return; } - + localVarList.WatchItems.Clear(); using(new PrintTimes("Local Variables refresh")) { try { Utils.DoEvents(debuggedProcess); foreach (var item in new StackFrameNode(debuggedProcess.SelectedStackFrame).ChildNodes) { - if (!localVarList.WatchItems.ContainsItem(item)) - localVarList.WatchItems.Add(item); + localVarList.WatchItems.Add(item); } } catch(AbortedBecauseDebuggeeResumedException) { }