if (exception[0] == null) {
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
launch.addDebugTarget(target);
subMonitor
.subTask(PHPDebugCoreMessages.XDebug_WebLaunchConfigurationDelegate_4);
target.waitForInitialSession(
(DBGpBreakpointFacade) IDELayerFactory.getIDELayer(),
XDebugPreferenceMgr.createSessionPreferences(), monitor);
} else {
// launched ok, so remove the launch from the debug view as we
// are not debugging.