Sun Studio 12: Debugging a Program With dbx

Passing Run Arguments to the JVM Software

To pass run arguments to the JVM software, set the jvm_invocation environment variable to start the JVM software with those arguments, as in the following example.


jvm_invocation="java -Xdebug -Xms512 -Xmx1024 -Xcheck:jni"

This causes dbx to start the JVM software as follows:


java -Djava.compiler=NONE -Xdebug -Xnoagent -Xrundbx_agent:sync= -Xms512 -Xmx1024 -Xcheck:jni