Setting Breakpoints

During debugging, you can set breakpoints on most lines in the script except for blank lines or comment lines.

Setting a breakpoint on the first line of a function or test case

  1. In the Silk Test Classic menu, click Breakpoint > Add.
  2. Double-click a module name to list the functions, which are declared in the module, in the Function list.
  3. Double-click a function name in the Function list to set a breakpoint on the first line of that function.

Setting a breakpoint on a line in a function or test case

Do one of the following:

  • Double-click in the left margin of the line.
  • Click on the line where you want to set a breakpoint, right-click, and select Toggle Breakpoint.
  • Place the cursor on the line where you want to set a breakpoint and choose Breakpoint > Toggle in the Silk Test Classic menu.

Setting a breakpoint on a specific line in a script

  1. In the Silk Test Classic menu, click Breakpoint > Add.
  2. In the Breakpoint field, type the number of the line on which you want to set a breakpoint. For example entering 8 sets a breakpoint on the eighth line of the script.
  3. Click OK.

Setting temporary breakpoints

Click Debug > Run To Cursor to set a temporary breakpoint, which is indicated by a hollow red circle in the left margin of the line where the cursor is located. When the script is executed the next time in debugging mode, the script execution stops at the marked line and the breakpoint is cleared.