You copied the Doc URL to your clipboard.

Stack view

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:

  1. 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

    Show in Stack

  2. Stack information is gathered when the system is stopped.

    Figure 15-11 Stack view showing information for a selected core

    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

Stack view locked to a selected context

Show or hide the Local Variables panel

Click localvariablespanelbtn 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 functionprototypedisplayopn to set the function prototype display options. You can choose to show or hide function parameter types or values.

Note

Displaying a large number of function parameter values might slow the debugger performance.
View more stack frames

To see more stack frames, click fetchmorestackframesbtn 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 stackdepthbtn and select the required stack depth. If you need more depth than the listed options, click Other and enter the depth you require.

Note

Increasing the number of displayed stack frames might slow the debugger performance.
Refresh the view

To refresh or update the values in the view, click refreshbtn .

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.

Toolbar options

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.