background image
<< To debug a GUI script | Place a breakpoint >>
<< To debug a GUI script | Place a breakpoint >>
Setting and Clearing Breakpoints
Debugging GUI Scripts
5-11
You can also use the Next Error and Previous Error commands on the Edit menu.
These commands move the text cursor to the line containing the next or previous
compiler error, and add an X in the left margin or highlight the line.
Setting and Clearing Breakpoints
Robot lets you set any number of breakpoints in a script. A breakpoint is a location
in a script where you want execution to stop.
When execution stops at a breakpoint, you can examine the value of a variable or
check the state of an object before it is modified by a subsequent command. You can
then resume execution until the next breakpoint or the end of the script.
Clear All Breakpoints
Clears all breakpoints in the script.
Step Into
Begins single-step execution. (The subprogram you initially
step into is
Main
.)
Executes one command at a time.
Step Over
Enabled after you step into a script. Executes a single
command line within a script.
If the command calls another script, Robot executes the
called script as if it were a single instruction and moves to
the command immediately following the script call.
If the command is the last line in a called script, Robot
returns to the calling script and stops at the command
immediately following the script call.
Step Out
Enabled after you step into a script. Steps out of the called
script and returns to the calling script. Execution stops at the
command immediately following the script call.
Step Out is equivalent to Go Until Cursor with the text
cursor placed in the calling script in the command line
immediately following the script call.
Debug command
Description