Debugging a remote application
In Apama Studio you can debug an Apama application running in a correlator on a remote machine. The correlator on the remote machine must be started with the -g option, which disables optimizations that interfere with debugging.
To debug an application on a remote machine:
1. Start the application on the remote machine.
2. In Apama Studio on the local machine where you will do the debugging, select Run > Debug Configurations. This displays the Debug Configurations wizard.
3. In the Debug Configurations wizard, in the left pane select Remote Apama Application and click the New launch configuration button (). 4. In the right pane, on the Apama Project tab:
a. Specify the Name of the debug configuration and the Project on the local machine where the debugging session is being run. The application in the project should match the application that is being debugged.
b. Specify the Host and the Port of the correlator running on the remote machine.
c. If desired, click Test Connection to verify the connection to the correlator on the remote machine can be made.
5. If desired, on the Source tab, add any needed resources. Generally, the project on the local machine would contain all the necessary resources.
6. Click Debug. The Confirm Perspective Switch dialog opens.
7. Click Yes. Apama Studio switches to the Debug perspective.
Note, when debugging a remote application, breakpoints are supported only inside actions of monitors and events. Breakpoints inside listener actions or outside of actions are not supported.