Connecting to a remote VM with the remote Java application launch configuration

  1. From the drop-down menu on the Debug button in the workbench toolbar, select Debug....

  2. In the launch configuration dialog, select the Remote Java Application entry in the left hand view.

  3. Click the New button. A new remote launch configuration is created and three tabs are shown: Connect, Source, and Common.

  4. In the Project field of the Connect tab, type or browse to select the project to use as a reference for the launch (for source lookup). A project does not need to be specified.

  5. In the Host field of the Connect tab, 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.

  6. In the Port field of the Connect tab, type the port where the remote VM is accepting connections. Generally, this port is specified when the remote VM is launched.

  7. 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.

  8. Click Debug. The launch 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.

Related concepts

Debugger

Related tasks

Launching a Java program
Disconnecting from a VM
Setting execution arguments

Related reference

Debug view

 
 Copyright IBM Corporation 2000, 2002. All Rights Reserved.