Using the WDB GUI · Using the Call Stack View Home and Help Icons Keyword Index Home Using Help
Line Graphic
Line Graphic

Contents

Keyword Index

Using the WDB GUI
Starting and Exiting the WDB GUI
Loading a Program and Changing Program Settings
Opening Source Files
Changing the Working Directory
Saving and Restoring Debug Sessions
Setting Source Paths
Setting Object Paths
Viewing Your Code
Browsing Functions
Setting Signal Handling
Finding Specific Text in Your Code
Using the Command View
Using the Watch View
Using Quick Watch
Using the Local Variables View
{short description of image} Using the Call Stack View
Using the Threads View
Using the Registers View
Examining Memory Use
Using the Program Console
Using Breakpoints
Advancing Through Your Program
Fixing Code from within the Debugger
Starting and Stopping the Debug Process
Setting Debugger Preferences
Customizing Colors and Fonts

Reference Information

Troubleshooting

Using Help



Bullet Overview
Bullet Viewing the Call Stack
Bullet Turning Parameters On and Off
Bullet Tips
Bullet See Also

Line Graphic

Overview

The Call Stack view lists the function calls leading to the current program statement. The stack frame for each function call displays the frame number, function's name, associated parameter names and values, and source code location.

Line Graphic

Viewing the Call Stack

You can view the call stack when your program's execution is paused.

To select a stack frame

  1. In the main window, click the Call Stack tab.
  2. Double-click the stack frame you want to view. This changes the context of the program but does not change the program counter. All of the WDB GUI views are updated based on the new context, except the Registers view. The appropriate source code is displayed in the Source and Disassembly views with a green stack marker indicating the current context.

    See Tips for an alternate way to select a stack frame.

To see the Call Stack view in a separate window

  • Click the right mouse button, then click Open Separate View. The separate window behaves the same as the tabbed Call Stack view.
  • To close the separate window, click the right mouse button, then click Close.

    See Tips for a shortcut to opening a separate window.
Line Graphic

Turning Parameters On and Off

You can choose whether or not to display parameter names and values in the Call Stack view.

To turn parameter names and values on or off

  • In the Call Stack view, right-click and select Parameters Values from the pop-up menu.
Line Graphic

Tips

  • To use the pop-up menu to view the source code associated with a stack frame, right-click on a frame and select Go To Code.
  • Click the Call Stack toolbar button to open and close the Call Stack view in a separate window.
  • On the View menu, click Call Stack to quickly bring the Call Stack view to the top.
Line Graphic

See Also

Line Graphic

Return to Top