C and C++ Call Stack Window

See Also 

The Call Stack window lists the sequence of function 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 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, the window stays open until you close it.

By default, the window shows the name of the function for each call. To display additional information, including the frame number, optimization, program counter, and the filename and line number of the function's currently executing statement, click the Change Visible Columns button Change Visible Columns button  and select columns in the Change Visible Columns dialog box.

If you double-click the function, the editor jumps to the function in your source code.

The initial function is at the bottom of the Call Stack window. The function that was executing when the program stopped is at the top of the window. This function is known as the stopped-in function.

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 in the Threads window, the Call Stack window is updated to show the calls for that thread. The values of variables in the 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 selected frame the current frame.
Pop Topmost Call All of the calls above the selected call are removed from the call stack.
Pop to Here Frames are removed from the stack. Program execution resumes at the beginning of the line in the new current frame.
Set Max Frames Lets you set the maximum number of frames that will be removed from the stack. The default number is 40.
Verbose Governs the printing of arguments and information when popping frames from the stack.
See Also
Current Context in the Debugger
C and C++ Debugger Windows

Legal Notices