Attaching/Invoking Target JVM
In order to attach the debugger to a target JVM, 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:
- Attaching to a target JVM suspended on JVM start.
- Attaching to an already executing target JVM.
- Attaching to a target JVM suspended on a thrown exception.
- Attaching to 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.