Remotely Debugging a Program
You can run a program on one machine and debug the program from another machine using your network connection. Your network file system must be available from both the remote and local computers.
To debug a program on a remote machine:
- From a command line on your local computer, log on to the remote computer.
- Start up a debugger agent with the classpath for your application:
- Check to see that the Java Workshop bin directory is in your path.
- Type the following:
jws_rdebug -classpath
- Note the Agent password that is printed.
- Then, on the local machine:
- Start Java Workshop, if necessary.
- Choose the project corresponding to your application.
- Choose Project -> Edit.
- Click the Debug/Browse tab.
- Click the Remote Debugging radio button and click OK.
- Click the Restart button on the Edit/Debug toolbar.
- In the Remote Debugging window, type the name of the remote computer and the Agent password from step 2.
- Click OK.
JDE now begins the remote debugging session. You can use all of the local debugging functions to debug a program on your remote machine.