Controlling Line Execution During Script Debugging

While debugging a script, you can control flow to aid in error recognition and to reduce the time needed to diagnose and fix errors.

The Set Run pointer/next Statement command sets the execution point to the line in your script that you choose. This feature is only available while at a breakpoint during debugging.

Use the Set Run pointer/next Statement command when you want to re-run a statement within the current procedure or to skip over statements in your script you do not want to play back. While debugging a script, this feature lets you control flow to aid in error recognition and reduce the time needed to diagnose and fix errors.

  1. While debugging or at a breakpoint during playback, perform one of the following steps:
    • Drag the yellow arrow to the code line to be played back next.
    • Click to position the cursor on the next line to be played back and then choose Debug > Set Run pointer/next Statement.
    Note: In scripts, you can only set the next statement to a line in the same procedure as the current statement.
  2. Press F5 to resume playback at the selected line or press F8 to playback only the selected line. After the selected line executes, playback suspends, and Silk Test Workbench returns to debug mode. The execution point goes to the next sequential line.