是否有让“Drop To Frame”在 Android 上运行的技巧?该选项对我来说无效。
最佳答案
我希望这是可能的,但我不这么认为。
其他不错的功能,如“所有实例...”、“实例计数”和观察点(在变量访问/修改上停止调试)也不可用。 我认为这是因为DalvikVM不支持此功能。
来自 eclipse 文档关于 Drop to frame :
Note this command is only available if the current VM supports drop to frame and the selected stackframe is not the top frame or a frame in a native method.
类似的注释可以在描述All instances的页面上找到。 :
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
查看我对我自己的类似问题的回答 here .
也许 Dalvik 上有一个选项可以启用此功能。
编辑
这可能没什么值(value),但如果您使用单元测试(使用 JUnit 或 Robolectric),那么所有这些功能都可用(因为我认为在 native JVM 上运行)并且非常有帮助。
干杯,
关于android - 无法落入框架?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11807041/