Skip to content

Commit

Permalink
adjust runIde task to run with debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
kropp committed Nov 7, 2024
1 parent 6f7f389 commit 42f31bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions idea-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ tasks {
targetCompatibility = "21"
}
withType<KotlinJvmCompile> { compilerOptions.jvmTarget.set(JvmTarget.JVM_21) }

runIde {
systemProperty("idea.is.internal", true)
systemProperty("idea.kotlin.plugin.use.k2", true)
jvmArgumentProviders += CommandLineArgumentProvider {
listOf("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005")
}
}
}

class ProjectProperties(private val project: Project) {
Expand Down

0 comments on commit 42f31bd

Please sign in to comment.