在Eclipse Android框架源代码级调试 [英] Android framework source level debugging in Eclipse

查看:169
本文介绍了在Eclipse Android框架源代码级调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可在source.android.com Java源代码的Andr​​oid框架。我可以下载并喂它们到Eclipse这样我可以进入框架的方法,而调试?更重要的是,没有人知道一个Eclipse的插件,它会根据需要自动地让他们从Android的Git的?

the Java sources for the Android framework are available at source.android.com. Can I download and feed them to Eclipse so that I can step into framework methods while debugging? Better yet, does anyone know of an Eclipse plug-in that would get them from Android Git automatically as needed?

编辑:在调试过程中,我可以通过框架code步骤;我可以看到他们的声明的名称局部变量和行号为好。这似乎是调试信息已经存在 - 只有源文件丢失。虽然我可以同时打开它,看执行展开,版本匹配的问题仍然存在。在Git的类文件的许多版本,我该如何选择一个匹配无论是设备(或模拟器)上运行?这更是一个Git导航的问题 - 我怎么收拾的很版本进入Android的版本,比方说,2.2的文件

during debugging, I can step through the framework code; I can see local variables by their declared names, and line numbers as well. It seems like the debug info is already there - only the source file is missing. While I can open it in parallel and watch the execution unfold, the question of version matching remains. Of many versions of the class file in Git, how do I pick one that matches whatever is running on the device (or emulator)? This is more of a Git navigation question - how do I pick up the very version of the file that went into Android release, say, 2.2?

编辑要晚得多:现在信号来自ppackaged与Android SDK $ P $。这个问题是有些过时了。

EDIT much later: now sources come prepackaged with Android SDK. This question is somewhat obsolete.

推荐答案

这篇文章很好地解释了如何做到这一点:的 http://android.opensourceror.org/2010/01/18/android-source/

This article nicely explains how to accomplish this: http://android.opensourceror.org/2010/01/18/android-source/

这篇关于在Eclipse Android框架源代码级调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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