How do you attach the debugger to the Kotlin compi...
# compiler
r
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