[英]How can I debug native Android platform code?
I'm interested in learning about the Android runtime (ART) and I'd like to be able to put a debugger on it so I can step through the code. 我对了解Android运行时(ART)感兴趣,并且希望能够在其上放置调试器,以便逐步完成代码。 I have an AOSP build that I've been running on an emulator.
我有一个已经在模拟器上运行的AOSP构建。
What's the best way to attach and run source? 附加和运行源代码的最佳方法是什么? Should I just use gdbserver on the emulator?
我应该只在模拟器上使用gdbserver吗? Are there any IDEs that people use for native debugging?
人们是否使用任何IDE进行本机调试?
If you want to debug native code, you're going to need the source, which of course means getting the AOSP. 如果要调试本机代码,则将需要源代码,这当然意味着要获得AOSP。 After you've setup the AOSP, do the following:
设置AOSP之后,请执行以下操作:
看起来您已经明白了,但仅出于完整性考虑,以下是一些官方文档的链接,这些文档基本上涵盖了您所说的内容: http : //source.android.com/devices/tech/debug/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.