Call Stack Window (Compact 2013)
3/26/2014
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. To display this window, go to Debug > Windows > Call 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.
Shortcut Menu Options
Right-click the window to display a menu.
- Copy
Copies the selected text.
- 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.
- Automatically 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.
- Toggle Breakpoint
Turns a breakpoint off, if it is on, or on, if it is off.
- 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.
- Frame Pointer
Displays the pointer to the stack frame that the executing function currently is using.
- File Name
Displays the name of the file in which the executing function is defined.
- Hexadecimal Display
Changes the selected values to hexadecimal.
See Also
Concepts
Platform Builder User Interface