IProgressMonitor monitor = null;
Map<String, String> args = new HashMap<String, String>();
args.put(KEY_HOSTNAME, host);
args.put(KEY_PORT, String.valueOf(port));
SocketAttachConnector connector = new SocketAttachConnector();
try {
connector.connect(args, monitor, launch);
} catch (CoreException e) {
throw new RuntimeException(
"Debug VM not available at " + host + ":" + port + ". " +
"Check hostname and port number.");
}