Cannot drop to frame?

限于喜欢 提交于 2019-12-29 07:52:06

问题


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


回答1:


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

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.

From eclipse documentation about 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.

Similar note can be found on page describing All instances:

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

See my answer to my own similar question here.

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

EDIT

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.

Cheers,




回答2:


From here i got the following comment

The action only enables when the program you are debugging supports the operation. For example, the Java debugger supports the operation when debugging on a VM that supports it (1.4.x or higher), and there are no native methods on the call stack above the point you want to drop to.



来源:https://stackoverflow.com/questions/10611019/cannot-drop-to-frame

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!