in rider/src/main/kotlin/com/jetbrains/aspire/rider/sessions/projectLaunchers/DotNetSessionProcessLauncher.kt [86:116]
override suspend fun launchDebugProcess(
sessionId: String,
launchConfiguration: DotNetSessionLaunchConfiguration,
sessionProcessEventListener: ProcessListener,
sessionProcessLifetime: Lifetime,
aspireHostRunConfigName: String?,
project: Project
) {
LOG.trace { "Starting debug session for project ${launchConfiguration.projectPath}" }
val aspireHostRunConfig = getAspireHostRunConfiguration(aspireHostRunConfigName, project)
val (executable, browserSettings) = getDotNetExecutable(launchConfiguration, true, aspireHostRunConfig, project)
?: return
val modifiedExecutable = modifyDotNetExecutableToUseCustomOTLPEndpoint(executable)
val runtime = getDotNetRuntime(modifiedExecutable, project) ?: return
val projectPath = launchConfiguration.projectPath
val aspireHostProjectPath = aspireHostRunConfig?.let { Path(it.parameters.projectFilePath) }
val profile = getDebugProfile(
sessionId,
projectPath,
modifiedExecutable,
runtime,
browserSettings,
sessionProcessEventListener,
sessionProcessLifetime,
aspireHostProjectPath
)
executeProfile(profile, true, null, project)
}