Start the Java debugger and connect to the database

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:

  1. Start Adaptive Server.

  2. 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.

  3. Run the $SYBASE/$SYBASE_ASE/debugger/jdebug script. jdebug prompts you for these parameters:

    1. Machine name of the Adaptive Server

    2. Port number for the database

    3. Your login name

    4. Your password

    5. 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.”