final XDebugSession debugSession =
XDebuggerManager.getInstance(module.getProject()).startSession(runner, env, contentToReuse, new XDebugProcessStarter() {
@NotNull
public XDebugProcess start(@NotNull final XDebugSession session) throws ExecutionException {
try {
NMERunningState runningState = new NMERunningState(env, module, false, true);
final ExecutionResult executionResult = runningState.execute(executor, runner);
final BCBasedRunnerParameters params = new BCBasedRunnerParameters();
params.setModuleName(module.getName());
return new HaxeDebugProcess(session, bc, params);
}
catch (IOException e) {