use of com.goide.execution.application.GoApplicationRunningState in project intellij by bazelbuild.
the class BlazeGoDebugRunner method doExecute.
protected RunContentDescriptor doExecute(ExecutionEnvironment environment, BlazeGoDummyDebugProfileState blazeState) throws ExecutionException {
EventLoggingService.getInstance().logEvent(getClass(), "debugging-go");
GoApplicationRunningState goState = blazeState.toNativeState(environment);
ExecutionResult executionResult = goState.execute(environment.getExecutor(), this);
return XDebuggerManager.getInstance(environment.getProject()).startSession(environment, new XDebugProcessStarter() {
@Override
public XDebugProcess start(XDebugSession session) {
RemoteVmConnection<?> connection = new DlvRemoteVmConnection(DlvDisconnectOption.KILL);
XDebugProcess process = new DlvDebugProcess(session, connection, executionResult, /* remote= */
true);
connection.open(goState.getDebugAddress());
return process;
}
}).getRunContentDescriptor();
}
Aggregations