是否可以同时调试UI App和AAR? [英] Is it possible to debug UI App and AAR simultaneously?

查看:348
本文介绍了是否可以同时调试UI App和AAR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个android项目,并希望开发两个可以协同工作的二进制文件:一个UI App和一个AAR库后端。这个想法是,将来AAR可能会与其他UI一起使用。

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.

因此,我们有一位开发人员在AAR项目上工作,另一位开发人员在UI上工作。项目。有什么办法可以同时调试两者;即,运行UI + AAR并在两者之间来回跟踪执行,设置断点并在任一侧监视,等等。

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.?

我已经做了类似的事情在.NET中,使用单个解决方案中的多个项目开发UI EXE + DLL后端,一次调试整个程序;这是一种非常好的发展方式。

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?

谢谢。

推荐答案

您可以将两个部分都作为模块添加到一个项目中。然后,在您的UI模块中将直接依赖项添加到第二个模块。现在,您可以同时调试两者。

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.

如果要与代码一起调试任何库,Android Studio还支持反编译文件中的断点(如果有,则在附加的源文件中)一个)。

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).

这篇关于是否可以同时调试UI App和AAR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆