https://kotlinlang.org logo
#compiler
Title
# compiler
r

ralf

02/14/2023, 12:48 AM
How do you attach the debugger to the Kotlin compiler with 1.8.20? In the past I used
Copy code
-Dorg.gradle.debug=true -Dkotlin.compiler.execution.strategy=in-process
But with 1.8.20 you can’t run the compiler in-process anymore. In other tickets I found
Copy code
-Dkotlin.daemon.jvm.options="-agentlib:jdwp=transport=dt_socket\,server=y\,suspend=n\,address=*:5005"
But no luck there, the connection is refused. Any advice?
👀 1
It’s a project property now, so
-P
instead of `-D`:
Copy code
-Pkotlin.compiler.execution.strategy=in-process
5 Views