Is it possible to debug UI and AAR applications at the same time?

we are working on an android project and want to develop two executables that work together: a UI application and the end of an AAR library. The idea is that AAR can be used in the future with other user interfaces.

So, we have one developer working on an AAR project, and another developer working on a user interface project. Is there a way to debug two at the same time; that is, run UI + AAR and trace between them, set breakpoints and clocks on both sides, etc.?

I did a similar thing in .NET, developed the UI EXE + DLL interface with several "projects" in one "solution", debugging all this at once; this is a really good way to develop. Is there any way to achieve this using android studio?

Thanks.

+3
source share
1 answer

You can add both parts to the same project as modules . Then you add a direct dependency in your user interface module to the second module. Now you can debug both at the same time.

This is the best solution if you also want to make changes in both parts.


If you want to debug any library in conjunction with your code, Android Studio also supports breakpoints in decompiled files (or in a connected source, if any).

+3
source

Source: https://habr.com/ru/post/1015370/


All Articles