Can I debug the compilation process? I've set the...
# intellij
d
Can I debug the compilation process? I've set these options in
gradle.properties
and attached the debugger after run:
Copy code
org.gradle.debug=true
org.gradle.debug.server=true
org.gradle.debug.suspend=true
...but for some reason the debugger doesn't 'break' on this Exception which is occurring in a JS build:
Copy code
e: java.lang.AssertionError: Assertion failed
	at org.jetbrains.kotlin.ir.backend.js.transformers.irToJs.JsAstUtilsKt.translateCallArguments(jsAstUtils.kt:341)
I have previously used the debugger successfully to debug Gradle sync issues using the same method... is there something going on with internal process launching that's 'hiding' the JS compiler's activity from the debugger?
e
there's a Kotlin daemon, which you either want to set debug args on separately from the Gradle daemon (see https://kotlinlang.org/docs/gradle.html#setting-kotlin-daemon-s-jvm-arguments) or disable (
-Dkotlin.compiler.execution.strategy=in-process
)
d
Perfect ­čÖé Knowledgeable as always @ephemient ­čĹî