Attaching the remote debugger to the JVM debug agent

A debug session begins when the remote debugger attaches to the debug agent running in Adaptive Server. In addition to the connection information supplied using sp_jreconfig, you must enter the location of the source files for the classes that are to be debugged.

If you are using an IDE or standalone debugger, consult the vendor documentation for instruction on how to attach the remote debugger to the debug agent.

This example assumes you are using a jdb command line debugger. You connect to the debug agent on the machine “myhost” on port 8000 and specify Java source files in the JAR archive mysource.jar in your home directory.

jdb –attach myhost:8000 –source .:${HOME}/mysource.jar 

The syntax varies for other debugger tools, but you must always supply connection information and source file locations.