可变观察点并不在Eclipse / ADT的Andr​​oid项目的工作 [英] Variable watchpoint doesn't work in Eclipse/ADT Android projects

查看:177
本文介绍了可变观察点并不在Eclipse / ADT的Andr​​oid项目的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

public class Main extends Activity {
    int field = 0;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        int local = 0;
        field = local;
        local = field;
    }
}

我已经把观察点上的场和断点属性我证实,这两个访问和修改都被监视。但观察点没有触发调试器暂停执行程序。无论是在2.2 AVD和欲望上启用了USB调试尝试。 任何人对如何观察点可与Android有经验吗?

I've put "watchpoint" on "field" and in "Breakpoint Properties" I confirmed that both access and modification are being watched. But the watchpoint didn't trigger the debugger to pause execution of program. Tried both in 2.2 AVD and on Desire with USB Debugging enabled. Anyone has experience on how watchpoint works with Android?

谢谢, 瑞安

推荐答案

我找不到一个谷歌官方源说,这是行不通的。不过我一直寻找这个文件的镜子 <一href="http://www.milk.com/kodebase/dalvik-docs-mirror/docs/debugger.html">http://www.milk.com/kodebase/dalvik-docs-mirror/docs/debugger.html它说

I can't find an official google source that says that it does not work. However I keep finding mirrors of this document http://www.milk.com/kodebase/dalvik-docs-mirror/docs/debugger.html which says

已知问题和限制 - 大多数的可选功能JDWP允许未实现。这些措施包括字段访问观察点和更好的跟踪监测。

Known Issues and Limitations - Most of the optional features JDWP allows are not implemented. These include field access watchpoints and better tracking of monitors.

这篇关于可变观察点并不在Eclipse / ADT的Andr​​oid项目的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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