String[] cmds = {};
cmds = cmdLine.toArray(cmds);
// Launch a process to run or debug
Process p = DebugPlugin.exec(cmds, workingPath, envp);
RuntimeProcess process = (RuntimeProcess)DebugPlugin.newProcess(launch, p, PhantomjsConstants.PROCESS_MESSAGE);
if (isDebugMode) {
int phantomjsDebugPort = preferenceStore.getInt(PreferenceConstants.PHANTOMJS_DEBUG_PORT);
NodeDebugUtil.launch(mode, launch, monitor, phantomjsDebugPort);
}
// if(!process.isTerminated()) {