Using the C or C++ Call Stack

See Also 

The call stack represents all currently active routines--those that have been called but have not yet returned to their respective caller. In the stack, the functions and their arguments are listed in the order in which they were called.

The initial function, main() for C and C++ programs, is at the bottom of the Call Stack window. The function executing when the program stopped is at the top of the Call Stack window. This function is known as the stopped-in function.

The information given for each call in the stack includes the function name and the values of its parameters, followed by the file name and line number of the currently executing statement.

You can open the Call Stack window at any time by choosing Window > Debugging > Call Stack (Alt-Shift-3).

To browse the call stack, do any of the following:

When you browse the call stack the content of the other debugging windows is updated for the current frame.

See Also
Popping a Call From the Call Stack
Stepping Through Your C or C++ Program

Legal Notices