Call Stack Window

Note: Call Stack Window is currently only supported for 32-bit devices.

Call Stack shows the hierarchical information of callers of the current method. By default, the Call Stack window displays the name of each function. To display Call Stack, Click the menu, Debug → Windows → Call Stack.



Along with function name, optional information such as module name, line number, etc. may also be displayed. The display of this optional information can be turned ON or OFF. To switch ON/OFF the optional information displayed, right click the Call Stack window and select or deselect Show <the information that you want>



Stack frame of the current execution pointer is indicated by a yellow arrow. By default, this is the frame whose information appears in the source, Disassembly, Locals, Watch, and Auto windows. The stack frame context can also be changed to be another frame displayed in the Call Stack window.

Warning: Call Stack may not show all the call frames with Optimization levels -O1 and higher.

To switch to another stack frame

  1. 1.In the Call Stack window, right click the frame whose code and data you want to view.
  2. 2.Select Switch to Frame.

    A green arrow with a curly tail indicates the changed stack context. The execution pointer remains in the original frame, which is still marked with the yellow arrow. If you select Step or Continue from the Debug menu, the execution will be continued from the yellow arrow, not the frame you selected.



To view the source/disassembly code for a function on the call stack

  1. 1.In the Call Stack window, right click the function whose source code you want to see and select Go To Source Code.
  2. 2.In the Call Stack window, right click the function whose disassembly code you want to see and select Go To Disassembly.

To set a breakpoint at the exit point of a function call

In the Call Stack window, right click the stack frame to which you would like to add the breakpoint. Select 'BreakPoint → Insert Breakpoint' to add the breakpoint.