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

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

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

Loading…
Cancel
Save