Can someone tell here how to debug the compiler :p...
# compiler
b
Can someone tell here how to debug the compiler 🙏 ?
s
You can launch it with
in-process
flag and
-Dorg.gradle.debug=true
From there on it is basically the same as debugging gradle build https://docs.gradle.org/current/userguide/troubleshooting.html#sec:troubleshooting_build_logic
b
I tried doing that but the problem is that I want to debug the incremental compiler step but it doesn't work in in-process mode due to https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/compilerRunner/GradleKotlinCompilerWork.kt#L312 Just trying my way around it.