Stepping through a script
The debugger provides the following facilities for stepping through LotusScript:
- Step into a subprogram
To execute the current statement and step to the next statement, or step into the subprogram if the current statement calls a subprogram, click Step Into, choose Debug - Step Into, or press F8.
Step Into proceeds to the next statement in the program. If the current statement calls a subprogram, the debugger displays the script for the subprogram and sets the current line to the first executable statement in the subprogram. If no source script is available for the subprogram (because it is an external file), Step Into behaves the same as Step Over.
- Step over a subprogram
To execute the current statement and step to the next statement, or step over the subprogram if the current statement calls a subprogram, click Step Over, choose Debug - Step Over, or press SHIFT+F8.
Step Over proceeds to the next statement in the current program unit. If the statement calls a subprogram, the debugger executes the entire subprogram as if it were a single statement and sets the current line to the next statement in the calling program unit.
- Exit from a subprogram
To execute the remaining statements in a subprogram and step to the next statement in the calling program unit, click Step Exit, choose Debug - Step Exit, or press CTRL+F8.
Step Exit continues executing the current subprogram and stops in the subprogram that called it at the line following the call. If the subprogram was not called by another, execution continues to the next breakpoint or to completion.