Use the Stack view to display stack information for the currently active connection in the Debug Control view. You can view stack information for cores, threads, or processes depending on the selected execution context.
To view stack information:
In the Debug Control view, right-click the core, thread, or process that you want stack information for, and select Show in Stack. This displays the stack information for the selected execution context.
Figure 15-10 Show in Stack
Stack information is gathered when the system is stopped.
Figure 15-11 Stack view showing information for a selected core
Some of the views in the Development Studio perspective are associated with the currently selected stack frame. Each associated view is synchronized accordingly.
You can also:
- Lock Stack view information display to a specific execution context
You can restrict Stack view information display to a specific execution context in your current active connection. In the Stack view, click Linked: <context> and select the execution context to lock. For example, in the below figure, Stack view is locked to the selected thread.
Figure 15-12 Stack view locked to a selected context
- Show or hide the Local Variables panel
Click to show or hide the LocalVariables panel. You can interact with local variables as you would in the Variables view. See Variables view for more information about working with variables.
- Set function prototype display options
Click to set the function prototype display options. You can choose to show or hide function parameter types or values.
NoteDisplaying a large number of function parameter values might slow the debugger performance.
- View more stack frames
To see more stack frames, click Fetch More Stack Frames to view the next set of stack frames.
By default, the Stack view displays five stack frames, and each additional fetch displays the next five available frames.
To increase the default depth of the stack frames to view, on the Stack view menu, click and select the required stack depth. If you need more depth than the listed options, click Other and enter the depth you require.
NoteIncreasing the number of displayed stack frames might slow the debugger performance.
- Refresh the view
To refresh or update the values in the view, click .
- Show in Disassembly
Right-click a stack frame and select Show in Disassembly to open the Disassembly view and locate the current instruction for that stack frame.
- Show in Memory
Right-click a stack frame and select Show in Memory to open the Memory view and display the memory location used to store that stack frame.
- Step Out to This Frame
Right-click a stack frame and select Step Out to This Frame to run to the current instruction at the selected stack frame.
The following View Menu options are available:
- New Stack View
Displays a new instance of the Stack view.
- Freeze Data
Toggles the freezing of data in the currently selected execution context. This option prevents automatic updating of the view. You can still use the Refresh option to manually refresh the view.
- Update View When Hidden
Updates the view when it is hidden behind other views. By default, this view does not update when hidden.