I'm trying to use apt and generate some code, so I've got a not working sample from here imported it to Android Studio, made it work and placed it here in case anyone else would want a working sample of APT on Android with Android Studio.
So Once I've got the project running and working I'm going to temper with it and stress its capabilities, and I would like to be able to debug my code and not only observe helplessly at the output.
So, how can I debug the code of the AbstractProcessor of APT, using Android Studio or Plain IntelliJ?
Success... SO the solution is a combination of these two posts one and two...
So basically you add a Remote debug configuration (be sure the port is set to the same as the following lines), and add the following line to your gradle.properties file:
DONE! now you can debug your AnnotationProcessor!