*/
public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
- if (PHPRuntime.getDefault().getSelectedInterpreter() == null) {
- String pid = PHPLaunchingPlugin.PLUGIN_ID;
- String msg = "You must define an interpreter before running PHP.";
- IStatus s = new Status(IStatus.ERROR, pid, IStatus.OK, msg, null);
- throw new CoreException(s);
+ //if (PHPRuntime.getDefault().getSelectedInterpreter() == null) {
+ if (configuration.getAttribute(
+ PHPLaunchConfigurationAttribute.SELECTED_INTERPRETER, "")
+ .equals("")) {
+ if (!configuration.getAttribute(
+ PHPLaunchConfigurationAttribute.REMOTE_DEBUG, false)
+ && mode.equals("debug") || mode.equals("run")) {
+ String pid = PHPLaunchingPlugin.PLUGIN_ID;
+ String msg = "You must define an interpreter before running PHP.";
+ IStatus s = new Status(IStatus.ERROR, pid, IStatus.OK, msg,
+ null);
+ throw new CoreException(s);
+ }
}
InterpreterRunnerConfiguration conf = new InterpreterRunnerConfiguration(