if (isListenConnection) {
logWriter.println("Start listening on: " + address);
try {
address = transport.startListening(address);
} catch (IOException e) {
throw new TestErrorException(e);
}
logWriter.println("Listening on: " + address);
} else {
logWriter.println("Attach to: " + address);
}
String cmdLine = settings.getDebuggeeJavaPath() + " -cp \""
+ settings.getDebuggeeClassPath() + "\" -agentlib:"
+ settings.getDebuggeeAgentName() + "="
+ settings.getDebuggeeAgentOptions(address, isListenConnection)
+ " " + settings.getDebuggeeVMExtraOptions() + " "
+ (savedVMOptions != null ? savedVMOptions : "") + " "
+ settings.getDebuggeeClassName();
logWriter.println("Launch: " + cmdLine);
try {
launchProcessAndRedirectors(cmdLine);
logWriter.println("Launched debuggee process");
openConnection();
logWriter.println("Established transport connection");
} catch (Exception e) {
throw new TestErrorException(e);
}
}