Skip to main content

Breakpoints

Breakpoints are a useful tool to debug automations. They are points in an automation from which you can pause a run to examine the current values of variables and the status of an application. You can step through execution and data paths from a breakpoint, which slows down the automation flow and allows you to see every design block's cause and effect. A red dot is displayed in the designer window when you create a breakpoint on the automation links. You use the following commands to examine your automation:

Command name Description Menu button Hotkey
Step-into You can follow the execution path of the program and track each variable.
step into key
F11 key
Step-over You can step over the execution of a design block. If the block contains a function, the function runs, and the result returns without going into the details of the run.
step over key
F10 key
Step-out You can return to the previous execution point where the system called the function.
step out key
Shift + F11 key
Continue You can continue a run until the automation reaches the next breakpoint or the program exits.
continue button
F5 key
Stop You can immediately end the run of the automation and call the program to exit.
stop button
Shift + F5 key

You can also right-click the automation surface to access a debugging context menu in Pega Robot Studio provides another way to interact with breakpoints in your automation, as shown in the following figure:

debugging context menu

Breakpoints functionality

The following table describes the purpose of the breakpoints that are available in Robot Studio:

Action

Purpose

How to use it

Screenshot showing use of the Toggle Breakpoint menu option.

Toggle Breakpoint adds breakpoints to an automation from the designer window.

Right-click the automation links in front of the design block that you want to inspect, and then select Toggle Breakpoint

Screenshot showing use of the Remove Breakpoint menu option.

Remove Breakpoint deletes a breakpoint from an automation when you no longer need it.

Right-click the automation link, and then select Remove Breakpoint

Screenshot showing use of the Disable Breakpoint menu option.

Disable Breakpoint allows an automation to pass over a breakpoint but still keep it in the automation.

Right-click the automation link, and  then select Disable Breakpoint

Screenshot showing debugging tools of Pega Robot Studio that allow to enable/disable breakpoints.

 

Enable allows you to review all breakpoints in an automation to enable or disable them.

In the menu, click Debugging tools to open the Debugging Tools window. Enable or disable breakpoints by selecting or clearing the Enable column checkbox.

 

Clicking the automation link to access the Run to here function during Run or Test

Run to here debugs the automation by adding a temporary breakpoint so you can test a portion of the automation. You need a traditional breakpoint in the automation to pause the workflow before you can initiate a Run to here action.

 

Right-click the automation links, and then click Run to here to allow the automation to temporarily continue debugging to the selected automation link without saving the location. To use the Run to here feature, you need to run the Test or Run debugging process.

Note: You must also use the Step over tool to move past any breakpoints that are between the starting breakpoint and the Run to here location. Additionally, no step tools are available if there isn't a breakpoint between the starting breakpoint and the Run to here point. For more information about using this feature, see Run to here.

Check your knowledge with the following interaction:


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice