In order to trace or debug with OLT, you must compile your code with specific environment variables set.
To compile you server code for OLT:
Generate OLT-enabled code by following the instructions for Compiling Component Broker applications from within Object Builder or Compiling Component Broker applications from the command line. See "Compiling application code for OLT" for these instructions.
export IVB_TRACE_DEBUG=1 | |
export JAVA_HOME=[path_to_JDK] | # where [path_to_JDK] is the full path to your JDK 1.1.8 |
export STEPLIB=none | # no compiler override |
export _CEE_PREFIX=SYS1.CEE | # default LE |
export _CEE_CBC=SYS1.CBC | #default compiler |
export CB390_ROOT= <path_to_CB> |
# where <path_to_CB> is the full path to where Component Broker is installed. |
export IVB_DRIVER_PATH= $CB390_ROOT/usr/lpp/CB390 |
|
export CB390_ENVFILE= $IVB_DRIVER_PATH/samples/CB390make.env |
# this file is needed by the Object Builder-generated makefile |
export NOHFSLNKOUT=1 |
You C++ code should be compile with -g flag to create debug information. Java code should be compile using the javac -g command for Java 1.1.x and the javac -g:lines,vars,source command for the Java 2 platform.
Copy your source files to the x:\CBroker\bin directory on the Windows NT workstation where you plan to debug or set the DER_DBG_PATH environment variable to point to the directory where your source files reside on the Windows NT workstation.