在调试器(Android)中无法遍历代码 [英] Cannot step through code in debugger (Android)

查看:108
本文介绍了在调试器(Android)中无法遍历代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我无法遍历调试器中的代码。我不是试图通过Android源代码,只是驻留在我的项目中的代码。我的构建路径被设置为包括它,但是每当我尝试踩任何东西,它给我一个源未找到消息。

For some reason I can't step through the code in the debugger. I am not trying to step through Android source code, just code that resides in my project. My build paths are setup to include it, but whenever I try stepping over anything it gives me a "Source not found" message.

推荐答案

我不认为海报想要通过java源代码。他想做的是避免进入核心库。幸运的是,eclipse确实允许你使用步骤过滤器(虽然为什么这个默认情况下没有启用),但是我会认为想要调试核心库的人将是边缘案例...)。为此,您可以转到窗口 - >首选项 - > Java - >调试 - >步骤过滤,将其打开并检查要自动跳过的包(我检查所有)。

I dont think the poster wants to step through the java source code. What he wants to do is avoid stepping into the core libraries. Fortunately eclipse does let you do this using step filters (though why this isnt enabled by default ill never know, i would have thought people wanting to debug the core libraries would be the edge case ...). To do this, you can go to Window -> Preferences -> Java -> Debug -> Step Filtering, turn it on and check the packages you want to automatically step over (i check them all).

看到这篇文章了解更多信息以及一些精彩截图 - http://www.eclipsezone.com/eclipse/forums/t83338.rhtml

See this post for more information along with some great screenshots - http://www.eclipsezone.com/eclipse/forums/t83338.rhtml

这篇关于在调试器(Android)中无法遍历代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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