Process process = commandLine.createProcess();
myErlangProcessHandler = new OSProcessHandler(process, commandLine.getCommandLineString());
getSession().getConsoleView().attachToProcess(myErlangProcessHandler);
myErlangProcessHandler.startNotify();
if (runningState instanceof ErlangRemoteDebugRunningState) {
ErlangRemoteDebugRunConfiguration runConfiguration = (ErlangRemoteDebugRunConfiguration) getRunConfiguration();
if (StringUtil.isEmptyOrSpaces(runConfiguration.getErlangNode())) {
throw new ExecutionException("Bad run configuration: remote Erlang node is not specified.");
}
myDebuggerNode.debugRemoteNode(runConfiguration.getErlangNode(), runConfiguration.getCookie());
}
else {
ErlangRunningState.ErlangEntryPoint entryPoint = runningState.getDebugEntryPoint();
myDebuggerNode.runDebugger(entryPoint.getModuleName(), entryPoint.getFunctionName(), entryPoint.getArgsList());
}