Browse Source

fix typo in CallStackPad

pull/59/merge
Siegfried Pammer 12 years ago
parent
commit
4b82d6e382
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.addin
  2. 6
      src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs

4
src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.addin

@ -77,12 +77,12 @@
</Condition> </Condition>
<MenuItem id="AddExpressionBreakpoint" <MenuItem id="AddExpressionBreakpoint"
insertafter="Toggle Breakpoint" insertafter="Toggle Breakpoint"
label = "${res:XML.MainMenu.DebugMenu.AddExpressionBreakpoint}" label = "${res:MainWindow.Windows.Debug.AddExpressionBreakpoint}"
shortcut="Shift|F7" shortcut="Shift|F7"
class = "Debugger.AddIn.AddExpressionBreakpointCommand"/> class = "Debugger.AddIn.AddExpressionBreakpointCommand"/>
<MenuItem id="AddWatchExpression" <MenuItem id="AddWatchExpression"
insertafter="AddExpressionBreakpoint" insertafter="AddExpressionBreakpoint"
label = "${res:XML.MainMenu.DebugMenu.AddWatchExpression}" label = "${res:MainWindow.Windows.Debug.AddWatchExpression}"
shortcut="Ctrl|F7" shortcut="Ctrl|F7"
class = "Debugger.AddIn.AddWatchExpressionCommand"/> class = "Debugger.AddIn.AddWatchExpressionCommand"/>
</Path> </Path>

6
src/AddIns/Debugger/Debugger.AddIn/Pads/CallStackPad.cs

@ -116,15 +116,15 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads
void RefreshPad() void RefreshPad()
{ {
Thread thead = WindowsDebugger.CurrentThread; Thread thread = WindowsDebugger.CurrentThread;
if (thead == null) { if (thread == null) {
listView.ItemsSource = null; listView.ItemsSource = null;
} else { } else {
var items = new ObservableCollection<CallStackItem>(); var items = new ObservableCollection<CallStackItem>();
bool previousItemIsExternalMethod = false; bool previousItemIsExternalMethod = false;
WindowsDebugger.CurrentProcess.EnqueueForEach( WindowsDebugger.CurrentProcess.EnqueueForEach(
listView.Dispatcher, listView.Dispatcher,
thead.GetCallstack(100), thread.GetCallstack(100),
f => items.AddIfNotNull(CreateItem(f, ref previousItemIsExternalMethod)) f => items.AddIfNotNull(CreateItem(f, ref previousItemIsExternalMethod))
); );
listView.ItemsSource = items; listView.ItemsSource = items;

Loading…
Cancel
Save