Debugging: Call Stack Window

See Also

The Call Stack window lists the sequence of calls made during execution of the current thread. By default, the Call Stack window opens automatically whenever you start a debugging session. You can open the Call Stack window by by choosing Window > Debugging > Call Stack.

If you open the Call Stack window when a debugging session is running, it closes automatically when you end the debugging session. If you open the window when no debugging session is running, it stays open until you close it.

The information given for each call includes the name of the call, followed by the filename and line number of the call's currently executing statement. If the filename and line number are displayed in blue underlined text, then the text is linked to the source code for that call.

One call is the current call. By default, this call is the most recent call made by the current thread. When you select a different current thread, the Call Stack window is updated to show the calls for that thread and the values of variables in the Local Variables window are adjusted for the context of the current call.

Icons

The following table describes the icons displayed to the left of the call name.

Icon Description
Current frame icon The current call on the call stack
Non-Current frame icon A call other than the current call

Actions

The pop-up menu in the Call Stack window includes the following items.

Menu Item Description
Make Current Makes the call the current call. This command is equivalent to double-clicking the call.
Pop to Here Removes the calls that are listed above the selected call from the call stack.
Copy Stack Copies a textual representation of the call stack to the clipboard.
List Options Enables you to customize the display of the Call Stack window, including adding and removing columns of information, reordering the columns, and sorting the columns. See Customizing a Debugger Window for more information.
See Also
Current Context in the Debugger
Debugging Tasks: Quick Reference
Popping a Call From the Call Stack
Debugger Windows

Legal Notices