|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.netbeans.api.debugger.jpda.AbstractDICookie
org.netbeans.api.debugger.jpda.LaunchingDICookie
Launches a new JVM in debug mode and returns VirtualMachine for it.
How to use it:
DebuggerInfo di = DebuggerInfo.create (
"My First Launching Debugger Info",
new Object [] {
LaunchingDICookie.create (
"examples.texteditor.Ted",
new String [] {},
"c:\\nb\\settings\\sampledir",
true
)
}
);
DebuggerManager.getDebuggerManager ().startDebugging (di);
| Field Summary | |
static String |
ID
Public ID used for registration in Meta-inf/debugger. |
| Method Summary | |
static LaunchingDICookie |
create(String mainClassName,
String[] args,
String classPath,
boolean suspend)
Creates a new instance of LaunchingDICookie for given parameters. |
static LaunchingDICookie |
create(String mainClassName,
String commandLine,
String address,
boolean suspend)
Creates a new instance of LaunchingDICookie for given parameters. |
String |
getClassName()
Returns main class name. |
String |
getCommandLine()
Returns command line to be used. |
boolean |
getSuspend()
Returns suspended state. |
static String |
getTransportName()
Returns type of transport to be used. |
com.sun.jdi.VirtualMachine |
getVirtualMachine()
Creates a new instance of VirtualMachine for this DebuggerInfo Cookie. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ID
| Method Detail |
public static LaunchingDICookie create(String mainClassName, String commandLine, String address, boolean suspend)
mainClassName - a name or main classcommandLine - command line of debugged JVMaddress - a address to listen onsuspend - if true session will be suspended
public static LaunchingDICookie create(String mainClassName, String[] args, String classPath, boolean suspend)
mainClassName - a name or main classargs - command line argumentsclassPath - a classPathsuspend - if true session will be suspended
public static String getTransportName()
public String getClassName()
public boolean getSuspend()
public String getCommandLine()
public com.sun.jdi.VirtualMachine getVirtualMachine()
throws IOException,
com.sun.jdi.connect.IllegalConnectorArgumentsException,
com.sun.jdi.connect.VMStartException
getVirtualMachine in class AbstractDICookieIOException
com.sun.jdi.connect.IllegalConnectorArgumentsException
com.sun.jdi.connect.VMStartException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||