More than one user can attach to and debug the same agent. However, only one user has control to debug it at any given time. A second user may get control by attaching to the same agent. This capability is useful, for instance, if you want help from a coworker in debugging an agent. You can ask the coworker to attach to and debug the server agent and that coworker can do so without having to be in the same physical location as you. Note that if you attempt to continue debugging the server agent after your coworker has attached to and begun to debug it, you will get the error, "Another user has attached to the agent and taken control. Please try to reconnect for further debugging."
Complete these steps before using the remote debugger:
1. Enable remote debugging on the server.
2. Enable remote debugging in the agent.
3. Start the remote debugger.
"To debug a scheduled LotusScript agent remotely" defines how to use the remote debugger once the server and agent are set up to allow for remote debugging.
Note Remote debugging is new with Release 6.
To enable remote debugging on the server
1. Before starting the server, in the server's notes.ini file, add the following value to the ServerTasks= list:
If the server is already running, to begin the remote debugging task enter the following at the server console:
load rdebug
5. Check the Ports - Internet Ports - Remote Debug Manager tab, to ensure that the TCP/IP port status property is set to "Enabled."
6. Make sure you are listed on the server's Security tab as having permission to run agents.
7. Save and Close the server document.
To enable remote debugging in the agent
1. On the Basics tab of the Agent Properties box, select the On schedule Trigger radio button. Click Schedule.
3. Add a Stop statement to the beginning of the Initialize event code in the agent. The Stop statement works as follows:
Print "AgentName is about to start running****************"
To start the Remote Debugger
1. To run a specific agent you want to debug, either:
The Domino Debugger 6 welcome page opens.
1. To display the agent code you want to debug in the Script pane, select the agent or script library name from the Object list box and the name of the event that triggers it or the subroutine from the Event list box on the Debug pane.
Note Use this button repeatedly to step through each line of the script one line at a time.