Displaying Java source code into the debugger

StepsDisplaying Java source code in the debugger

The debugger looks in a set of locations for source code files with .java extension.

  1. In Sybase Central, select Mode > Debug.

  2. When prompted to select the user to debug, specify * for all users and click OK.

  3. From the debugger interface, select Debug > Set Java Source Code Path.

  4. Enter the path to the java subdirectory of your Sybase IQ installation directory. For example, if you installed Sybase IQ in %IQDIR15%, enter:

    %IQDIR15%\java
    
  5. Click OK, and close the window.

Locating Java source code

The Java Source Code Path window holds a list of directories in which the debugger looks for Java source code. Java rules for finding packages apply. The debugger also searches the current CLASSPATH for source code.

For example, on Windows, if you add the paths %IQDIR15%\java and c:\Java\src to the source path, and the debugger is trying to find a class called iqdemo.Product, it looks for the source code in %IQDIR15%\asa\java\asademo\Product.Java and c:\Java\src\my\ iqdemo\Product.Java