X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java index d2b5300..8cec3f2 100644 --- a/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java +++ b/net.sourceforge.phpeclipse.launching/src/net/sourceforge/phpdt/internal/launching/InterpreterRunnerConfiguration.java @@ -40,7 +40,7 @@ public class InterpreterRunnerConfiguration { try { projectName = configuration.getAttribute(PHPLaunchConfigurationAttribute.PROJECT_NAME, ""); } catch(CoreException e) { - PHPLaunchingPlugin.getDefault().log(e); + PHPLaunchingPlugin.log(e); } IProject project = PHPLaunchingPlugin.getWorkspace().getRoot().getProject(projectName); @@ -81,7 +81,34 @@ public class InterpreterRunnerConfiguration { try { selectedInterpreter = configuration.getAttribute(PHPLaunchConfigurationAttribute.SELECTED_INTERPRETER, ""); } catch(CoreException e) {} - + return PHPRuntime.getDefault().getInterpreter(selectedInterpreter); } + + public boolean useRemoteDebugger() { + try { + return configuration.getAttribute(PHPLaunchConfigurationAttribute.REMOTE_DEBUG, false); + } catch(CoreException e) { + PHPLaunchingPlugin.log(e); + } + return false; + } + + public String getRemoteSourcePath() { + + IProject project = getProject().getProject(); + if (useRemoteDebugger()) + return project.getLocation().toOSString(); + else + { + try { + return configuration.getAttribute(PHPLaunchConfigurationAttribute.REMOTE_PATH, ""); + } catch(CoreException e) { + PHPLaunchingPlugin.log(e); + } + } + + return ""; + } + }