1. |
From the drop-down menu on the Debug button in the workbench toolbar, select Debug > Remote Application. |
2. |
In the Host field, type the IP address or domain name of the host where the Java program is running. If the program is running on the same machine as the workbench, type localhost . |
3. |
In the Port field, type the port where the remote VM is accepting connections. Generally, this port is specified when the remote VM is launched. |
4. |
The Allow termination of remote VM flag is a toggle that determines whether the Terminate command is enabled in the debugger. Select this option if you want to be able to terminate the VM to which you are connecting. |
5. |
Click Finish. The launcher attempts to connect to a VM at the specified address and port, and the result is displayed in the Debug view. If the launcher is unable to connect to a VM at the specified address, an error message appears. |