Поделиться через


Call Stack Window (Windows Embedded CE 6.0)

1/5/2010

During a debug session, the Call Stack window displays the active stack of function calls. When a function is called, it is pushed onto the stack. When the function returns, it is popped off the stack.

Using this window, you can

  • Display the executing function at the top of the stack, followed by older function calls on the lines below that.
  • Display parameter types and values for each function call.
  • Display or hide parameter types and values.
  • Navigate the function source code or disassembled object code by double-clicking the function in the Call Stack window.
    If source code for the selected function is not available, the function object code appears in the Disassembly Window.
    Navigating to the function code changes the view of the program shown in the Variables window and in other debugger windows. It does not change the next line of execution, or change the value stored in the program counter.
  • Process
    Displays the process associated with the call stack.

    To navigate to a different process, press the down-arrow and then select the new process from the drop-down list.

    The Current process is the process that is active when the debugger stops or hits a breakpoint, which refreshes the window with new information. Stepping works only for the current process or thread.

  • Thread
    Displays the thread that the call stack is for. You can navigate to a different thread by pressing the down-arrow and then selecting the new thread from the dropdown list.

    If you select Current, the call stack for the current thread appears, which refreshes the window with new information. Stepping works only for the current process or thread.

Context Menu Options

Right-click the window to bring up a menu.

  • Refresh
    Deletes all entries in the window, allowing only current entries to appear.
  • Log
    Formats and copies all current data in this window to the Log tab of the Output Window.
  • Auto Log on Step
    Automatically copies the data in this window to the Output Window after each debugging step. Click to turn on or off, if it is on.
  • Go To Code
    Opens the source window at the selected function.
  • Insert/Remove Breakpoint
    Inserts a breakpoint at the line where the cursor is in the Disassembly Window.

    If a breakpoint exists at that line, it is removed.

  • Enable Breakpoint
    Enables a formerly inactive breakpoint.
  • Run to Cursor
    Runs to the cursor and then breaks.
  • Parameter Values
    Displays the values of parameters in the Call Stack window.
  • Parameter Types
    Displays the types of parameters in the Call Stack Window.
  • Hexadecimal Display
    Changes the selected values to hexadecimal.
  • Docking View
    Select to switch the active window from docking to non-docking mode.

    • Docking Mode: A check mark appears if the window is in docking mode.
      By pressing the CTRL key and clicking on the frame of the window, a docked window can be changed to a floating window. A floating window can be redocked at any time.
    • Non-docking mode: The window appears inside the main Platform Builder window and cannot be docked.
  • Hide
    Hides the active window.

See Also

Tasks

Viewing the Call Stack for a Function
Changing Call Stack Window Options

Reference

Debug Windows