if (host != null && port != null) {
argMap.put("hostname", host); //$NON-NLS-1$
argMap.put("port", port); //$NON-NLS-1$
setSourceLocator(launch);
connector.connect(argMap, monitor, launch);
addDebuggerConnectionListener(configuration.getAttribute(DEBUGGER_CONNECTION_ID, (String) null), launch);
}
else {
CloudFoundryPlugin
.logError("Failed to launch debug configuration. IP and host for application instance cannot be resolved."); //$NON-NLS-1$