Objective
The
objective of this sample is to debug Java client code from startup, then step into the C++
server code on Windows NT/2000.
Before you begin
You must complete the steps to compile and install the Policy sample for Windows NT/2000,
including the Java client application (as explained in the Preparing
for the OLT tutorials).
For this exercise, a single Windows NT/2000 machine is running OLT, the debugger, and your client and server applications, as follows:
Description
In this exercise, you will complete these steps:
Sample instructions
Follow these steps to perform the tracing and debugging for this scenario:
JDK 1.2.2+JDPA
idebug -qlang=java
-qjvmargs="-Xdebug -Xnoagent -Xrunjdwp:transport-dt_socket,server=y,suspend=n,address=<JVM_port>
-Djava.compiler=NONE -Xbootclasspath/a:"<jdk_home>\lib\tools.jar;<WebSphereEE>\lib\derdbpw.jar" -Dcom.ibm.debug.jdwpport=<JVM port>
-Dcom.ibm.CORBA.EnableApplicationOLT=true -Dcom.ibm.CORBA.requestTimeout=0 -Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host> -Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port> -DOLTClient=true -classpath d:\cbroker\samples\InstallVerification\ProgrammingModel\ BusinessObjects\Policy\Working\NT\TRACE_DEBUG\jcb\jcbPolicyC.jar; d:\cbroker\lib\somojor.zip;D:\cbroker\lib\dertrjrt.jar;%CLASSPATH% -Xbootclasspath/a:"\lib\tools.jar" -Dcom.ibm.debug.jdwpport=" PolicyAppwhere:
- <OLT_Server_Host> is the fully qualified name or TCP/IP address of the machine running your OLT server
- <OLT_Server_Port> is the port where the OLT server listens for connecting OLT clients (default 2102)
The Java debugger opens to the first executable line in the Policy client application.
If you are using other JDK levels, see JDK 1.1.x and JDK 1.3.x for the appropriate idebug command.
org.omg.CORBA.portable.OutputStream
by double-clicking on the line number in the prefix area. Then click Run to stop at the breakpoint.
Important Note: While running your application, do not close the debugger window that you are using to debug server code. Doing so shuts down your application server. When you finish debugging, stop your application server using System Manager, then close the OLT window.