Eclipse中步入一流的机器人

编程入门 行业动态 更新时间:2024-10-25 10:31:03
本文介绍了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中步入一流的机器人

本文发布于:2023-11-06 22:34:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564857.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:机器人   Eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!