background image
<< Debugger - Adding a breakpoint | Debugger - Stepping into and over functions >>
Debugger - Executing a script in the debugger
<< Debugger - Adding a breakpoint | Debugger - Stepping into and over functions >>
User's Guide
175
7 U
SING
THE
D
EBUGGER
Executing a script in the debugger
Seeing a list of
breakpoints
Procedure To view a list of all the breakpoints in a script, select View/
Breakpoints.
The list shows the name of the file each breakpoint is in, and the number
of the line it is set on or the name of the function if the breakpoint was set
on the first line of the function.
Deleting breakpoints
You can delete breakpoints in any of three ways.
Setting a temporary
breakpoint
Select Debug/Run To Cursor to set a temporary breakpoint (indicated by a
hollow red circle in the margin) on the line containing the cursor. SilkTest
immediately runs the script, stopping at the current line. The breakpoint is
cleared after it is hit.
Executing a script in the debugger
Once you have set one or more breakpoints, you can start executing your
script.
Procedure To start debugging a script, select Debug/Run.
SilkTest runs the script until it hits the first breakpoint, an error occurs, or
the script ends. The line you are stopped on is indicated by a blue
triangle.
To delete
Then
All breakpoints
1 Select Breakpoint/Delete All.
2
Click Yes to confirm the deletions
.
An individual breakpoint
· Place the cursor on the line where the breakpoint
is set and select Breakpoint/Toggle.
or
· Double-click in the left margin of the line
One or more breakpoints
1 Select Breakpoint/Delete to open the Delete
Breakpoint dialog.
2 Select one or more breakpoints from the list box
and click OK.