Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't debug .aj file in Android Studio #118

Open
cyangibm opened this issue Jun 11, 2020 · 5 comments
Open

Can't debug .aj file in Android Studio #118

cyangibm opened this issue Jun 11, 2020 · 5 comments

Comments

@cyangibm
Copy link

The plugin doesn't allow you to set debug breakpoint in .aj classes.
If it does, how do you enable it?

@jdvp
Copy link

jdvp commented Jun 18, 2020

This is an IDE issue, not an issue with this plugin

@cyangibm
Copy link
Author

Thanks for your reply. I guess AS doesn't support .aj files, when you enable the AspectJ plugin in the Preference menu and try to open a .aj file, it freezes.

@jdvp
Copy link

jdvp commented Jun 19, 2020

Oh that's strange. I have personally had luck debugging on java aspect files in the pat. If you don't have many aspects/pointcuts it may be worth it to convert to the annotation-based aspects in java rather than .aj if debugging is necessary

@cyangibm
Copy link
Author

Interesting, not sure how you got it to work on your project. Would you mind sharing your Archinamon plugin app settings? I've migrated many .aj files from Eclipse project, so it's lots of rework.

@jdvp
Copy link

jdvp commented Jun 26, 2020

@cyangibm Sure, this sample project is what my setup looks like (I think Android Gradle 4.0.0, Gradle 6.1.1, android-gradle-aspectj 4.2.1)

https://github.com/jdvp/AndroidAspectExample

I am able to debug in Android Studio on the advices defined inside the AspectLogging.kt file. Hopefully that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants