You may want to interact with the debugger on a workstation that is remote from the client application, the OLT viewer, or both.
The following steps assume that you intend to run your client application on one workstation, OLT on a second workstation, and the debugger interface on a third workstation. Your application server can be running on any of these machines or on a fourth machine.
To create a trace, then debug in step-by-step mode from a remote workstation, follow these steps:
Do
not close the OLT command prompt window until you have finished your trace
session.
idebug -qquiet -qdaemon -quiport=8001
where:
8001 = port number entered in step 2b, if not 8001
The debugger daemon starts.
C++ client application:
Start your C++ application from a command prompt.
Java client application:
At a command prompt, enter this command:
for Java 1.1.x:
java_g -debug -nojit
-Dcom.ibm.CORBA.requestTimeout=0
-Dcom.ibm.CORBA.BootstrapHost=<BootstrapHostname>
-Dcom.ibm.CORBA.EnableApplicationOLT=true
-Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host>
-Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port>
-DOLTClient=true
-classpath <path\YourAppJarFile>; <path\somojor.zip>;
<path\dertrjrt.jar>; %CLASSPATH%
yourapp
for the Java 2 platform:
java -Xdebug -Djava.compiler=NONE
-Dcom.ibm.CORBA.requestTimeout=0
-Dcom.ibm.CORBA.BootstrapHost=<BootstrapHostname>
-Dcom.ibm.CORBA.EnableApplicationOLT=true
-Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host>
-Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port>
-DOLTClient=true
-Xbootclasspath:
<path\YourAppJarFile>;<path\somojor.zip>;<path\dertrjrt.jar>;
%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\lib\rt.jar;%CLASSPATH%
yourapp
where:
<BootstrapHostname> = your fully-qualified server
application host name (only needed if System Manager is running on a
different host)
<OLT_Server_Host> = the fully-qualified name or TCP/IP
address of the machine running your OLT server
<OLT_Server_Port> = the port where the OLT server listens
for connecting OLT clients
<path\somojor.zip> = x:\CBroker\lib\somojor.zip on
Windows NT; /usr/lpp/CBConnector/lib/somojor.zip on AIX;
/opt/IBMdebug/lib/dertrjrt.jar on Solaris.
<path\dertrjrt.jar> = x:\IBMDebug\lib\dertrjrt.jar on Windows
NT; /usr/idebug/lib/dertrjrt.jar on AIX; /opt/IBMdebug/lib/dertrjrt.jar on
Solaris.
In Step-by-step debug mode, OLT stops each time a debuggable method is encountered. OLT then asks whether you want to step into, or over, the method.
Running the debugger from OLT
Starting the OLT server and viewer on separate
workstations
Navigating the trace