background image
<< Locating Compilation Errors | Setting and Clearing Breakpoints >>
<< Locating Compilation Errors | Setting and Clearing Breakpoints >>

Debugging Scripts

Editing, Compiling, and Debugging Scripts
5-10
To debug a GUI script, use the Debug menu commands or toolbar buttons on the
Standard toolbar or Playback toolbar. When you start to debug, Robot automatically
compiles the script, if it has changed since it last ran, and displays the Playback
toolbar.
The following table describes the commands on the Debug menu.
Debug Command
Description
Go
Plays back the currently open script.
Executes until either the next breakpoint or the end of the
script, whichever comes first.
Go Until Cursor
Plays back the currently open script, stopping at the text
cursor position.
Executes until either the next breakpoint or the end of the
script, whichever comes first.
Animate
Plays back the currently open script, displaying a yellow
arrow in the left margin of each line (or highlighting the line)
as it executes.
Executes until either the next breakpoint or the end of the
script, whichever comes first.
Pause
Pauses playback. To resume playback, click Debug
>
Pause.
Stop
Stops playback.
Set or Clear Breakpoint
Sets or clears a breakpoint at the cursor position.
If you set a breakpoint, Robot inserts a solid red circle in the
left margin or highlights the line.
If you clear a breakpoint, Robot removes the circle or
highlighting.