launch.setAttribute(IDebugParametersKeys.EXECUTABLE_LAUNCH,
Boolean.toString(true));
IDebugParametersInitializer parametersInitializer = DebugParametersInitializersRegistry
.getBestMatchDebugParametersInitializer(launch);
PHPExecutableDebuggerInitializer debuggerInitializer = new PHPExecutableDebuggerInitializer(
launch);
String phpExeString = new File(phpExe).getAbsolutePath();
String fileName = new File(fileToDebug).getAbsolutePath();
String query = PHPLaunchUtilities.generateQuery(launch,
parametersInitializer);
String iniFileLocation = launch
.getAttribute(IDebugParametersKeys.PHP_INI_LOCATION);
String workingDir = new File(fileToDebug).getParentFile()
.getAbsolutePath();
debuggerInitializer.initializeDebug(phpExeString, fileName,
workingDir, query, envVariables, iniFileLocation);
} catch (java.io.IOException e1) {
Logger.logException(
"PHPDebugTarget: Debugger didn't find file to debug.", e1); //$NON-NLS-1$