Eclipse中步入一流的机器人 [英] Eclipse stepping into class in android

查看:152
本文介绍了Eclipse中步入一流的机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我试图Eclipse中调试一个简单的Andr​​oid项目。当我运行在调试模式下,使用步过按钮,它常常似乎要进入Android的code(我不希望它这样做,就像C调试器将无法进入的libc )。我得到了来查找其相似的屏幕:

I have a simple android project that I am trying to debug inside of Eclipse. When I run it in debug mode and use the "Step Over" button, it frequently seems to want to go into Android code (I don't want it to do this, just as a C debugger will not go into libc). I get a screen that comes up which looks similar to:

Class File Editor

Source not found:

The JAR file blahblah/android.jar has no source attachment.
You can attach the source by clicking attach source 

我不希望它进入Android或的Dalvik code在所有  (即使我可以安装源$ C ​​$ C)我感兴趣的只是我个人的code。

I don't want it to go into Android or Dalvik code at all (even if I could install source code) I am only interested in my own personal code.

推荐答案

根据您一步到位,你可能会通过一些平台/ SDK code,而活动之间移动时,即使你的code似乎运行运行干净。要解决这一点,我在接下来的活动中的某处设置一个断点,单步执行当前的活动再一次我打的code我打恢复结束,它打破了我的下一个活动跳过任何code,它是不是我的。不是最优雅,但它为我工作。

Depending on how you "step" you may be run through some platform/SDK code while moving between Activities even if your code seems to be running clean. To work around this I set a breakpoint somewhere within the next Activity and step through the current Activity and then once I hit the end of the code I hit resume and it breaks in my next Activity skipping any code that is not mine. Not the most elegant, but it works for me.

在调试你将永远是通过异常处理平台上运行。

In Debug you will always be run through the exception handling platform..

这篇关于Eclipse中步入一流的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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