https://kotlinlang.org logo
Title
y

yigit

05/29/2017, 2:40 AM
Trying to debug an annotation processor (using kotlin) on an android app (using kapt) but breakpoints does not work. Any guidence? I'm running:
gw --no-daemon :r:in:k:asDeb -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket\,address=5005\,server=y\,suspend=y"
after killing both daemons. I can connect, get a thread dump etc but it does not stop in breakpoints. I tried,
suspend=n
, does not help. I've also tried
-Dkotlin.compiler.execution.strategy="in-process"
to debug in gradle process but in that case daemon crashes.
y

yan

05/29/2017, 12:48 PM
yigit: Did you try to shutdown both Kotlin and Gradle daemons?
y

yigit

05/29/2017, 5:38 PM
yep