/*
* TODO As currently jdb just supports "jdb -attach [port]" command,
* more work to do to parse the jdb launching command option
*/
if (args.length >= 2 && args[0].equals("-attach")) {
SocketAttachingConnectorImpl sac =
new SocketAttachingConnectorImpl(
(VirtualMachineManagerImpl) Bootstrap.
virtualMachineManager());
Map argMap = sac.defaultArguments();
Connector.Argument value;
value = (Connector.Argument) argMap.get("hostname");
value.setValue("localhost");
value = (Connector.Argument) argMap.get("port");
value.setValue(args[1]);
debuggee = sac.attach(argMap);
//VMProcess = debuggee.process();
} else {
System.out.println("Wrong command option. " +
"The jdb currently only support jdb -attach [port].");
System.exit(0);