Browse Source

fix bug in WatchPad that causes watches to be removed on every step

pull/59/merge
Siegfried Pammer 13 years ago
parent
commit
e6ad9f7e78
  1. 2
      src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs

2
src/AddIns/Debugger/Debugger.AddIn/Pads/WatchPad.cs

@ -137,7 +137,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
protected void RefreshPad() protected void RefreshPad()
{ {
Process process = WindowsDebugger.CurrentProcess; Process process = WindowsDebugger.CurrentProcess;
if (process != null) { if (process != null && process.IsPaused) {
var expressions = this.Items.OfType<SharpTreeNodeAdapter>() var expressions = this.Items.OfType<SharpTreeNodeAdapter>()
.Select(n => n.Node.Name) .Select(n => n.Node.Name)
.ToList(); .ToList();

Loading…
Cancel
Save