When you run a script in Debug mode, the script is in one of three states:
When a script is interrupted at a breakpoint, the debugger has control.
When a script is stepping, control passes to the script and then back to the debugger after a single statement in the script is executed.
When a script is continuing, it runs uninterrupted until a breakpoint is reached. If you do not set any breakpoints in a script, it runs as if the debugger were not present.
Note The debugger does not run on the Terminate event.
To use the LotusScript Debugger
1. To enable the debugger, do one of the following:
Choose File - Tools - Debug LotusScript
Click the "Debug LotusScript" icon on the toolbar
The message "LotusScript debugging started" appears on the status line.
2. Perform the action that starts the script, like clicking a button or choosing an action. When you are in Debug mode and the script runs, execution pauses at the first line of the script and the debugger opens.
3. To adjust the windows, drag the horizontal bar separating the panes as desired.
4. To disable the debugger, do one of the following:
Click the Close Debugger box
Choose File - Tools - Debug LotusScript again
Click the "Debug LotusScript" icon on the toolbar again
The message "LotusScript debugging terminated" appears on the status line.
Stopping script execution
To stop script execution while the debugger is open, click Stop. All scripts that are at a breakpoint are stopped as if the end of the scripts were reached, and the debugger closes.