Remote debugging tutorial
This tutorial is a feature of JBuilder Enterprise.
This step tells you how to start both the server process and the client in debug mode in JBuilder, and then step into the cross-process breakpoint. Once you've started stepping, JBuilder allows you to step between the client and server. You will:
To start the server process in debug mode on the client computer (the computer running JBuilder),
Windows Run SimpleRMIServer
configuration.
SimpleRMIImplReady
is displayed on the remote computer.
To start the client in debug mode on the client computer (the computer running JBuilder),
Windows Run SimpleRMIClient
configuration.
getDate()
method.
To step into the cross-process breakpoint,
SimpleRMIClient
process.
SimpleRMIImpl getDate()
is displayed on the remote computer.
SimpleRMIClient
process in the debugger will look like this:
The output from the server running on the remote computer will look like this:
SimpleRMIImpl ready
SimpleRMIImpl.getDate()
While starting the server or client in debug mode in JBuilder, you may see one of the following error messages:
Error message | Description |
---|---|
connection refused |
The RMI Registry on the remote computer might not yet be running. Stop all processes and run the RMI Registry on the remote computer by entering start rmiregistry from the command line. (The Jdk1.3\bin folder must be in your path.) Restart the remote server and begin the debug process again.
|
Java exception: java.rmi.NotBoundException SimpleRMIImpl Instance |
You haven't yet started the server debug process. Click the Resume Program button ![]() |
Congratulations! You have completed the tutorial. Using preset runtime configurations, you ran a RMI server on a remote computer. You then debugged the program using JBuilder's remote debugging features.