Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to debug UI App and AAR simultaneously?

we are working on an android project and want to develop two binaries that work together: a UI App, and an AAR library back end. The idea is that the AAR may be used in the future with other UIs.

So, we have one developer working on the AAR project, and another developer working on a UI project. Is there any way to debug the two simultaneously; i.e., run the UI+AAR and trace execution back and forth between the two, setting breakpoints and watches on either side, etc.?

I've done the analogous thing in .NET, develop a UI EXE+DLL back end with multiple "projects" in a single "solution", debugging the whole thing at once; it's a really nice way to develop. Is there any way to achieve this with android studio?

Thanks.

like image 932
Chris Avatar asked Apr 08 '16 12:04

Chris


1 Answers

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

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


If you want to debug any library in combination with your code, Android Studio also supports breakpoints in decompiled files (or in the attached source if there is one).

like image 98
F43nd1r Avatar answered Nov 19 '22 20:11

F43nd1r