You can start the debugger and connect to the database using a script, command line options, or Sybase Central. In this tutorial, we use jdebug to start the debugger. You can use any database.
Follow these steps:
Start Adaptive Server.
If Java queries have not yet been executed on your server, run any Java query to initialize the Java subsystem and start a Java VM.
Run the $SYBASE/$SYBASE_ASE/debugger/jdebug script. jdebug prompts you for these parameters:
Machine name of the Adaptive Server
Port number for the database
Your login name
Your password
An alternate path to Debug.jar if its location is not in your CLASSPATH
Once the connection is established, the debugger window displays a list of available Java VMs or “Waiting for a VM.”