Global variables monitoring
The Global Variables tab monitors and allows you to change all global variables within your solution while debugging. All global variables shown in this tab reside in a global container project item within a project or are marked as a global variable in an automation. Viewing each global variable’s values lets you modify the values if necessary, and improve your understanding of how the automations update the values during execution. Within this tab the following actions are available:
- View all displayed values in the watch list before executing an automation and review the value during the debugging process by clicking on the variable in the hierarchy.
- Verify the values in the watch list change after executing a process from the automations tab.
- Inspect how values affect an automation without using breakpoints, unlike using the Automation Locals or Automation Watched window in Pega Robot Studio™.
- Change the values of variables when encountering a breakpoint to simulate and test all scenarios within the code.
Items to remember when using the global variables tab
When using the Global Variables tab, remember the following items:
- Enter a value that matches the data type of the corresponding global variable. Robot Inspector checks the two values and displays a message if the entered value does not adhere to the data type.
- When entering values into the watch list, make sure to note the message if you enter the value in an incorrect format. Use the correct data type or format for each variable as specified in the automation.
- Click the red X next to the global variable to remove it from the watch list. Clicking on the variable after removing it allows it to reappear on the watch list.
Auto Update Functionality
The changes within the Global Variables tab do not occur in real-time. The changes update either on a selected interval or by clicking the Refresh button. The Auto Update area contains an interval measured in seconds that checks the data to see if the tab needs updating. You can uncheck the Auto Update box to disable this feature. Click Refresh to update information on this tab manually.
Check your knowledge with the following interaction.
This Topic is available in the following Module:
Want to help us improve this content?