HP WDB GUI 5.7 Reference Manual (September 2007)
Debugging with WDB GUI
Advancing Through Your Program
Chapter 338
Stepping over functions
The Step Over command provides a single step execution of the current instruction, unless
the instruction is a function call. If the instruction is a function call, Step Over executes the
entire function, then pauses at the instruction immediately following the function call.
Program execution also pauses at breakpoints that are set in a function.
You can use Step Over to traverse the current stack frame without stepping through the
detail of each function call.
To step over a function or instruction
1. On the Debug menu, click Step Over.
2. Or, click the Step Over button in the toolbar:
Stepping out of functions
The Step Out command executes the program through completion of the current function.
Then the debugger pauses at the statement immediately following the function call.
You can use Step Out to return execution to the calling stack frame when you no longer want
to look at the detail of a function.
To step out of a function or instruction
1. On the Debug menu, click Step Out.
2. Or, click the Step Out button in the toolbar:
Stepping last functions
The Step Last command steps into the function call without stepping into the argument
evaluation function calls.
You can use Step Last to step into a function call without stepping through the detail of each
of its argument evaluation function calls. If a function call has arguments which further
makes function calls, steplast executes all argument evaluation function calls and will step
into the function. Program execution also pauses at breakpoints that are set in argument
function.