Viewing the Call Stack for a Function (Windows CE 5.0)

Send Feedback

You can view the call stack for a function while a program executes.

To view the call stack for a function

  1. Start debugging, and then wait for the debugger to stop at a breakpoint.

  2. Place the insertion point in a function.

  3. From the Debug menu, choose Run To Cursor to execute your application to the location of the insertion point.

    The Locals tab of the Variables window is updated and displays the local variables for the function or procedure.

  4. From the View menu, choose Debug Windows and then choose Call Stack.

    The functions are listed in the order they are called, with the current function at the top. The Context list in the Variables window also contains call stack functions.

  5. Select a function to navigate to its source code or disassembled object code.

    The window views change accordingly.

  6. To run to the application function return address, select the function in the Call Stack window and then choose Run To Cursor from the Debug menu.

  7. To set or remove a breakpoint at a function return address, select the preceding function in the Call Stack window and then choose Insert/Remove Breakpoint from the shortcut menu.

See Also

Viewing Function Calls | Call Stack Window

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.