How to force jvm.dll to accept arguments: -Xdebug

Hello,

I posted this in the New to Java section but didn't get many responses.

I have a class which is utilized by a C++ application. The C++ app invokes Java somewhere inside via JNI. I have no access to the C++ source code to change the optionStrings.

I want to use a remote debugger on the app, but I can't find a way to force it into -Xdebug mode.

Does anyone have any tips?

Message was edited by:

bajafresh

Message was edited by:

bajafresh

Message was edited by:

bajafresh

[549 byte] By [bajafresha] at [2007-10-3 9:00:31]
# 1
The JAVA_TOOL_OPTIONS environment variable might be useful: http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#tooloptionsso in your case you'll set it to something like:"-agentlib:jdwp=transport=dt_socket,server=y,address=5000"
alan.batemana at 2007-7-15 4:11:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...