Threads and Stack pane

The Threads and Stack pane is displayed in the upper left of the Debugger window. The Threads and Stack pane lists the methods called by your program so far. Only methods in the currently loaded symbol table are listed in this window.

The Threads and Stack pane displays the sequence of method calls that brought the program to its current state. When you double-click a method in the Threads and Stack pane, the Source pane displays the corresponding code.

The call stack is especially useful to see what sequence of calls led to a particular bug or unexpected condition.

The Threads and Stack pane enables you to show where a method was called. This is helpful if you accidentally used Run|Trace Into to debug a method instead of Run|Step Over. Using the Threads and Stack pane, you can return to the point from which the current method was called, then resume debugging from there.

To use the call stack to backtrack,

  1. In the Threads and Stack pane, double-click the method that called the method you accidently traced into. The Source pane becomes active with the cursor positioned at the location of the method call.
  2. In the Source pane, move the cursor to the statement following the method call.
  3. In the Source pane, right-click a line and choose Run To Cursor.

Right-click in the Threads and Stack pane to see the Threads and Stack pane popup menu.

Icons in the Threads and Stack pane

The following table explains the icons used in the Threads and Stack pane.

Icon Meaning
Thread group
Thread
Method