Skip to content

Commit

Permalink
fix RIDER-116030 Debug doesn't work "This run profile is not supporte…
Browse files Browse the repository at this point in the history
…d: class com.jetbrains.rider.run.configurations.exe.ExeDebugProfileState”

(cherry picked from commit 77726d5d77f23258d34d194e051241073172374c)

IJ-CR-142835

GitOrigin-RevId: 49c47b7cea070e77b14e8acd484b1a2583ce7c23
  • Loading branch information
van800 committed Aug 20, 2024
1 parent c0d53f9 commit 2048612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class GodotDebugProfileState(private val exeConfiguration: GodotDebugRunConfigur

val commandLineString = runCommandLine.commandLineString
val monoConnectResult = super.execute(executor, runner, workerProcessHandler)
workerProcessHandler.debuggerWorkerRealHandler.addProcessListener(object : ProcessAdapter() {
workerProcessHandler.addProcessListener(object : ProcessAdapter() {
override fun startNotified(event: ProcessEvent) {
val targetProcessHandler = if (exeConfiguration.parameters.useExternalConsole)
ExternalConsoleMediator.createProcessHandler(runCommandLine)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class GodotDebugRunConfiguration(name:String, project: Project, factory: Configu
return newConfiguration
}

override fun getStateAsync(executor: Executor, environment: ExecutionEnvironment): Promise<RunProfileState> {
override suspend fun getRunProfileStateAsync(executor: Executor, environment: ExecutionEnvironment): RunProfileState {
val executorId = executor.id

if (executorId == DefaultDebugExecutor.EXECUTOR_ID)
return resolvedPromise(GodotDebugProfileState(this, DotNetRemoteConfiguration(project, ConfigurationTypeUtil.findConfigurationType(MonoRemoteConfigType::class.java).factory, name), environment))
return GodotDebugProfileState(this, DotNetRemoteConfiguration(project, ConfigurationTypeUtil.findConfigurationType(MonoRemoteConfigType::class.java).factory, name), environment)

return super.getStateAsync(executor, environment)
return super.getRunProfileStateAsync(executor, environment)
}
}

0 comments on commit 2048612

Please sign in to comment.