Debugging a scheduled bot
You can attach IBM RPA Studio to a scheduled bot on a remote computer and debug the script once the bot starts.
Before you begin
- The remote computer must have IBM RPA installed.
- You need to install a Virtual Network Computing (VNC) client on the remote computer.
- You need to set an administrator password when installing the client.
- You need to open the ports for inbound Transmission Control Protocol (TCP) in the remote computer. Default ports are 5800 and 5900. You can change the default ports in the VNC client.
- You need to update the computer configuration for the remote computer in IBM RPA Control Center. In the computer configuration, enter the Vnc Password field.
- Download the certificate and reinstall it after updating the computer. For more information about the computer configuration, see Computers.
- To attach to a scheduled bot in a remote computer, a scheduled job must exist in the IBM RPA Control Center environment for the remote computer. For more information, see Scheduling scripts.
Procedure
- Log in to IBM RPA Studio.
- On the Home tab, click Attach to Schedule.
- In the Machine name field, enter the remote computer name. The remote computer name must be the IP Address or FQDN.
- To obtain the IP Address or FQDN.
- Open the Windows command prompt.
- On the command line, type the following command: "ipconfig/all".
- You can obtain the IP address from the IPv4 Address field.
- Type the following command to obtain FQDN: "echo %COMPUTERNAME%.%USERDNSDOMAIN%".
- To obtain the IP Address or FQDN.
- Once the search finds the computer, click Attach.
Results
After you click Attach, IBM RPA Studio attaches to the scheduled job and waits for it to start. You can follow the remaining time for the schedule to start in the Attach to Schedule window.
Once the scheduled bot starts, the bot's operation begins paused so you can debug the script.
What to do next
You can see the remote computer screen and interact with the remote computer's session:
- On the debugger's Window tab, click Debug bar.
- Maximize the debug bar window.
- Clear the Ignore VNC input option.