Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016

Environment Variables for Java Debugging

The following dbxenv variables are specific to debugging a Java application with dbx. You can set the JAVASRCPATH, CLASSPATHX, and jvm_invocation environment variables at a shell prompt before starting dbx or from the dbx command line. The setting of the jdbx_mode environment variable changes as you are debugging your application. You can change its setting with the jon command and the joff command.

The jdbx_mode dbxenv variable can have the following settings: java, jni, or native. For descriptions of the Java, JNI, and native modes, and how and when the mode changes, see dbx Modes for Debugging Java Code. Default: java.
You can use the JAVASRCPATH dbxenv variable to specify the directories in which dbx should look for Java source files. This variable is useful when the Java sources files are not in the same directory as the .class or .jar files. See Specifying the Location of Your Java Source Files for more information.
The CLASSPATHX dbxenv variable lets you specify to dbx a path for Java class files that are loaded by custom class loaders. For more information, see Specifying a Path for Class Files That Use Custom Class Loaders.
The jvm_invocation dbxenv variable lets you customize the way the JVM software is started. (The terms “Java virtual machine” and “JVM” mean a virtual machine for the Java platform.) For more information, see Customizing Startup of the JVM Software.