Removing launching from plug-in list to remove build errors
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / DebuggerRunner.java
index ffb100b..ab6157c 100644 (file)
@@ -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);
+                               }
                        }
                });
        }