无法删除帧?

2023-09-06 14:58:26 作者:偏愛

有一招让降至框架与Android合作?该选项处于非活动状态的我。

Is there a trick to get "Drop To Frame" to work with Android? The option is inactive for me.

推荐答案

我希望这是可能的,但我不这么认为。

I hope it is possible, but I don't think so.

像其他不错的功能所有实例......,实例数和监视点(停止调试的变量的访问/修改)也无法使用。 我想这是因为DalvikVM不支持此功能。

Other nice functionalities like "All instances...", "Instance count" and watchpoints (stop debug on variable access/modification) are also unavailable. I think it is because DalvikVM does not support this functions.

大约从Drop帧:

请注意,如果当前VM支持下降到框架和所选择的StackFrame没有顶部框架,或在本地方法的框架,该命令才可用。

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实例的:

Similar note can be found on page describing All instances:

如果您正在使用的Java虚拟机支持的实例检索该命令才可用。

This command is only available if the Java virtual machine you are currently using supports instance retrieval.

请参阅我的回答对我自己的类似的问题here.

See my answer to my own similar question here.

也许有一个选项,以在Dalvik的启用此功能。

Maybe there is an option to enable this functions on Dalvik.

修改

这可能是一个没什么价值,但是如果你使用的单元测试(使用JUnit或Robolectric)所有这些功能比用(因为在本机JVM我想运行)和非常有益的。

It may be a of little value, but if you use unit tests (using JUnit or Robolectric) than all those functions are available (since run on native JVM I think) and very helpful.

干杯,

相关推荐