Popping the Call Stack One Function at a Time

Related Topics:

Popping the Call Stack to the Current Frame Call Stack Popping Before or After Fixing
Popping Debugger Frames from the Call Stack pop Command

You can remove the stopped in function from the call stack, making the calling function the new stopped in function.

Unlike moving up or down the call stack, popping the stack changes the execution of your program. When the stopped in function is removed from the stack, it returns your program to its previous state, except for changes to global or static variables, external files, shared members, and similar global states.

To pop the stack one frame at a time:
   Choose Stack Pop.

Program execution resumes at the start of the line containing the call to the function just popped.

To pop the stack multiple frames:

1. In the call stack, click next to the frame that you want to make the current function.

2. Choose Stack Pop.

Program execution resumes at the beginning of the line containing the call to the function just popped. After resuming execution, the popped function is called again.


Note - When fixing your program, pop the stack before or after running Fix to minimize errors related to the modification to the source.

You can pop the stack multiple times.

You cannot pop if the caller is not compiled with-g.

You must use Pop after running Fix if you made changes to a function presently on the stack.