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);
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);
+ }
}
});
}
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;