background image
<< Commands - Debug menu | Commands - Edit menu >>
Commands - Debug Run To Cursor
<< Commands - Debug menu | Commands - Edit menu >>
User's Guide
453
27 M
ENU
C
OMMANDS
Debug menu
Debug/Reset
Available only in debugging mode. Frees memory and all variables, and
clears the call stack of the script you are debugging.
Debug/Run and Debug/Continue
Available only in debugging mode. Runs the script in the debugging window
until the first breakpoint, if any, is reached. Execution stops just before the
line with the breakpoint. SilkTest marks the current line (the next line to be
executed) with a triangle. The menu item changes from Run to Continue.
When SilkTest completes the execution of the script, it displays a message
box indicating that the script has terminated.
During script execution, SilkTest displays a transcript window, which is
similar to the results window. Unlike the results file, however, the output from
debugging a script is not saved in a file, there are no statistics, and all the
information is expanded automatically. The transcript window contains the
script name, the testcase names, and a list of the errors encountered and their
line numbers. At the bottom of the transcript window is a text field in which
you can enter any statement to execute. The results of each statement you
execute appear in the transcript window.
Debug Run To Cursor
Sets 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.
Debug/Step Into
Available only in debugging mode and after using Debug/Run and execution
has stopped at a breakpoint. Executes the current line of 4Test code in the
active script or in a file called by the active script. If the current line has a
breakpoint, SilkTest executes the line. If the current line contains a function
call, control passes into the function; SilkTest stops at the first statement.