Adding a breakpoint to the script
You can add breakpoints in specific lines of your script to pause your bot at that line during debugging.
About this task
Breakpoints are an important mechanism during debugging. They pause your script at the lines you configure so you can perform additional debugging actions. You can also configure conditional breakpoints to pause your bot only if the condition is true.
Before you begin
- You need to have a script with at least one command.
- You can only add breakpoints in the script's Designer view.
Procedure
To add a breakpoint by using the Toogle Breakpoint button:
- Click the command at the line you want to add the breakpoint.
- On the Home tab, click Toggle Breakpoint.
To add a breakpoint by using the mouse cursor:
Click the empty space next to the line number.
Results
A red mark should indicate there's a breakpoint at that line. You can disable the breakpoint by repeating this procedure for the line with the breakpoint or by right-clicking the breakpoint.
What to do next
You can add conditional statements to a breakpoint.
- Right-click the breakpoint and select Condition.
- Enter your condition in the command editor.