Search in sources :

Example 1 with GenericDebuggerRunnerSettings

use of com.intellij.debugger.impl.GenericDebuggerRunnerSettings in project intellij-community by JetBrains.

the class RemoteConfiguration method getState.

@Override
public RunProfileState getState(@NotNull final Executor executor, @NotNull final ExecutionEnvironment env) throws ExecutionException {
    final GenericDebuggerRunnerSettings debuggerSettings = (GenericDebuggerRunnerSettings) env.getRunnerSettings();
    if (debuggerSettings != null) {
        // sync self state with execution environment's state if available
        debuggerSettings.LOCAL = false;
        debuggerSettings.setDebugPort(USE_SOCKET_TRANSPORT ? PORT : SHMEM_ADDRESS);
        debuggerSettings.setTransport(USE_SOCKET_TRANSPORT ? DebuggerSettings.SOCKET_TRANSPORT : DebuggerSettings.SHMEM_TRANSPORT);
    }
    return new RemoteStateState(getProject(), createRemoteConnection());
}
Also used : GenericDebuggerRunnerSettings(com.intellij.debugger.impl.GenericDebuggerRunnerSettings) RemoteStateState(com.intellij.debugger.engine.RemoteStateState)

Aggregations

RemoteStateState (com.intellij.debugger.engine.RemoteStateState)1 GenericDebuggerRunnerSettings (com.intellij.debugger.impl.GenericDebuggerRunnerSettings)1