1) Fixed issue #852: Correct matching of closing brace with the according opening...
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / DebuggerRunner.java
index ffb100b..95938af 100644 (file)
@@ -26,12 +26,12 @@ public class DebuggerRunner extends InterpreterRunner {
 
        public IProcess run(InterpreterRunnerConfiguration configuration,
                        ILaunch launch) {
-               String[] env;
-               String name, value;
+               //String[] env;
+               //String name, value;
                PHPDBGProxy newPHPDBGProxy = new PHPDBGProxy(configuration
                                .useRemoteDebugger(), configuration.getRemoteSourcePath(),
                                configuration.usePathTranslation(), configuration.getPathMap());
-               int pos;
+               //int pos;
 
                IProcess process = null;
                PHPDebugTarget debugTarget = new PHPDebugTarget(launch, process);
@@ -68,8 +68,13 @@ public class DebuggerRunner extends InterpreterRunner {
                                JavaProject jproject = configuration.getProject();
                                IProject project = jproject.getProject();
                                IFile file = project.getFile(fileName);
-                               BrowserUtil.showPreview(file, true, "?DBGSESSID=1@clienthost:"
-                                               + port);
+                               if (configuration.useDBGSessionInExternalBrowser()) {
+                                       BrowserUtil.showBrowserAsExternal(file,
+                                                       "?DBGSESSID=1@clienthost:" + port);
+                               } else {
+                                       BrowserUtil.showPreview(file, true,
+                                                       "?DBGSESSID=1@clienthost:" + port);
+                               }
                        }
                });
        }
@@ -77,7 +82,7 @@ public class DebuggerRunner extends InterpreterRunner {
        protected void setEnvironmentVariables(
                        InterpreterRunnerConfiguration configuration, int listenPort) {
                String DBGSessID;
-               String env[] = new String[18];
+               //String env[] = new String[18];
                long id = Math.round(Math.random() * 100000);
 
                DBGSessID = "DBGSESSID=" + id + "@clienthost:" + listenPort;