Listening/Invoking Target JVM
In order for the debugger to listen for a target JVM
to connect to the debugger, the target JVM must be
invoked with the correct parameters. The following hyperlinks show how to
invoke the target JVM for the following debugging scenarios:
- Listening for a target JVM suspended on JVM start.
- Listening for an already executing target JVM.
- Listening for a target JVM suspended on a thrown exception.
- Listening for a target JVM suspended on an uncaught exception.
Make sure that you invoke the target JVM with jdkx.x/bin/java, not
jre/x.x/bin/java. By default, your PATH uses the JRE java,
so you must override this by explicitly invoking the target JVM with the
JDK java jdkx.x/bin/java.
The complete details are found in the Connection and Invocation Details
of the JPDA (Java Platform Debugger Architecture) -- see How To #5
www.debugtools.com/howto.html
©2001-2010. debugtools.com LLC. All rights reserved.