可变观察点并不在Eclipse / ADT的Andr​​oid项目的工作项目、工作、ADT、Eclipse

2023-09-06 02:40:53 作者:〆.黑色指甲油的妖染mm

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?

谢谢, 瑞安

推荐答案

我找不到一个谷歌官方源说,这是行不通的。不过我一直寻找这个文件的镜子 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.

 
精彩推荐
图片推荐