From e6ad9f7e78932a1793f1e1308343d5da9bce9ade Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 14 Sep 2013 19:38:50 +0200 Subject: [PATCH] fix bug in WatchPad that causes watches to be removed on every step --- src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs b/src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs index b556eae604..02f7407a55 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs @@ -137,7 +137,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads protected void RefreshPad() { Process process = WindowsDebugger.CurrentProcess; - if (process != null) { + if (process != null && process.IsPaused) { var expressions = this.Items.OfType() .Select(n => n.Node.Name) .ToList();