Eric's Studio

ARTS067

Word count: 152Reading time: 1 min
2022/06/01

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 参数,方便看到更多的执行细节

Share

None

CATALOG
  1. 1. Algorithm
  2. 2. Review
  3. 3. Tips
  4. 4. Share