private void createLaunch(DBGpSession session) throws CoreException {
boolean stopAtFirstLine = PHPProjectPreferences
.getStopAtFirstLine(null);
DBGpTarget target = null;
PathMapper mapper = null;
PHPSourceLookupDirector srcLocator = new PHPSourceLookupDirector();
srcLocator.setSourcePathComputer(DebugPlugin
.getDefault()
.getLaunchManager()
.getSourcePathComputer(
"org.eclipse.php.debug.core.sourcePathComputer.php")); //$NON-NLS-1$
ILaunchConfigurationType type = null;
ILaunchManager lm = DebugPlugin.getDefault().getLaunchManager();
if (session.getSessionId() == null) {
// web launch
type = lm
.getLaunchConfigurationType(IPHPDebugConstants.PHPServerLaunchType);
} else {
// cli launch
type = lm
.getLaunchConfigurationType(IPHPDebugConstants.PHPEXELaunchType);
}
ILaunchConfiguration launchConfig = type.newInstance(null,
PHPDebugCoreMessages.XDebugMessage_remoteSessionTitle);
srcLocator.initializeDefaults(launchConfig);
srcLocator.initializeParticipants();
ILaunch remoteLaunch = new Launch(launchConfig,
ILaunchManager.DEBUG_MODE, srcLocator);
boolean multiSession = XDebugPreferenceMgr.useMultiSession();
if (session.getSessionId() == null && !multiSession) {