myHandlers.put(handler.getEventType(), handler);
}
private KillableColoredProcessHandler startServer(@NotNull KarmaServerSettings serverSettings) throws IOException {
GeneralCommandLine commandLine = new GeneralCommandLine();
KarmaRunSettings runSettings = serverSettings.getRunSettings();
commandLine.setPassParentEnvironment(runSettings.isPassParentEnvVars());
commandLine.getEnvironment().putAll(runSettings.getEnvVars());
commandLine.setWorkDirectory(serverSettings.getConfigurationFile().getParentFile());
commandLine.setExePath(serverSettings.getNodeInterpreterPath());
File serverFile = myKarmaJsSourcesLocator.getServerAppFile();
//commandLine.addParameter("--debug-brk=34598");
commandLine.addParameter(serverFile.getAbsolutePath());