AnnotationProssor 与 JVM 的 Debug 方式。
Algorithm
None
Review
Debug annotation processor in Kotlin
升级 Kotlin 版本,kapt 报错
之前没自己写过 AnnotationProcessor,刚好熟悉一下这里
这篇文章提供了一个很好的例子,解释了如何在 AnnotationProssor 中打日志,如何使用 IDE 的 Remote Debug 方式调试 AnnotationProssor。
涉及到 JVM Debug,Gradle,Kapt,Kotlin 分别需要设置的参数,帮助很大
Annotation processors in Gradle with the annotationProcessor dependency configuration
AnnotationProcessor 在 Gradle 中是如何被传给 javac 的
Tips
Kapt annotation processing - how to show full stacktrace
kapt 执行的时候可以设置一个 verbose 参数,方便看到更多的执行细节