jetbrains-rider/src-203-212/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotnetDebugUtils.kt [122:178]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - enableHeuristicPathResolve.set(true) } workerModel.activeSession.set(sessionModel) val console = TextConsoleBuilderFactory.getInstance().createBuilder(environment.project).console promise.setResult( DotNetDebuggerUtils.createAndStartSession( executionConsole = console, env = environment, sessionLifetime = debuggerLifetime, processHandler = DebuggerWorkerProcessHandler( riderDebuggerProcessHandler, workerModel, true, riderDebuggerProcessHandler.commandLine, debuggerLifetime ), protocol = protocol, sessionModel = sessionModel, outputEventsListener = object : IDebuggerOutputListener {} ) ) return@initialized true } return@connected true } } } catch (t: Throwable) { LOG.warn(t) { "Failed to start debugger" } debuggerLifetimeDefinition.terminate(true) withContext(edtContext) { promise.setError(t) } } } val checkDebuggerTask = Timer("Debugger Worker launch timer", true).schedule(SamDebugSupport.debuggerConnectTimeoutMs()) { if (debuggerLifetimeDefinition.isAlive && !protocol.wire.connected.value) { runBlocking(edtContext) { debuggerLifetimeDefinition.terminate() promise.setError(message("lambda.debug.process.start.timeout")) } } } debuggerLifetime.onTermination { checkDebuggerTask.cancel() } return promise.get()!! } private fun startDebugWorker(dockerContainer: String, backendPort: Int, frontendPort: Int): OSProcessHandler { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jetbrains-rider/src-213+/software/aws/toolkits/jetbrains/services/lambda/dotnet/DotnetDebugUtils.kt [119:175]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - enableHeuristicPathResolve.set(true) } workerModel.activeSession.set(sessionModel) val console = TextConsoleBuilderFactory.getInstance().createBuilder(environment.project).console promise.setResult( DotNetDebuggerUtils.createAndStartSession( executionConsole = console, env = environment, sessionLifetime = debuggerLifetime, processHandler = DebuggerWorkerProcessHandler( riderDebuggerProcessHandler, workerModel, true, riderDebuggerProcessHandler.commandLine, debuggerLifetime ), protocol = protocol, sessionModel = sessionModel, outputEventsListener = object : IDebuggerOutputListener {} ) ) return@initialized true } return@connected true } } } catch (t: Throwable) { LOG.warn(t) { "Failed to start debugger" } debuggerLifetimeDefinition.terminate(true) withContext(edtContext) { promise.setError(t) } } } val checkDebuggerTask = Timer("Debugger Worker launch timer", true).schedule(SamDebugSupport.debuggerConnectTimeoutMs()) { if (debuggerLifetimeDefinition.isAlive && !protocol.wire.connected.value) { runBlocking(edtContext) { debuggerLifetimeDefinition.terminate() promise.setError(message("lambda.debug.process.start.timeout")) } } } debuggerLifetime.onTermination { checkDebuggerTask.cancel() } return promise.get()!! } private fun startDebugWorker(dockerContainer: String, backendPort: Int, frontendPort: Int): OSProcessHandler { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -