Search in sources :

Example 1 with CidrCommandLineState

use of com.jetbrains.cidr.execution.CidrCommandLineState in project intellij by bazelbuild.

the class BlazeCppRunner method doExecute.

@Nullable
@Override
protected RunContentDescriptor doExecute(RunProfileState state, ExecutionEnvironment environment) throws ExecutionException {
    if (environment.getExecutor().getId().equals(DefaultDebugExecutor.EXECUTOR_ID) && state instanceof CidrCommandLineState) {
        CidrCommandLineState cidrState = (CidrCommandLineState) state;
        XDebugSession debugSession = startDebugSession(cidrState, environment, false);
        return debugSession.getRunContentDescriptor();
    }
    return super.doExecute(state, environment);
}
Also used : CidrCommandLineState(com.jetbrains.cidr.execution.CidrCommandLineState) XDebugSession(com.intellij.xdebugger.XDebugSession) Nullable(javax.annotation.Nullable)

Aggregations

XDebugSession (com.intellij.xdebugger.XDebugSession)1 CidrCommandLineState (com.jetbrains.cidr.execution.CidrCommandLineState)1 Nullable (javax.annotation.Nullable)1