在 Android Studio 中调试时,我可以退回到上一个断点吗?(丢帧) [英] Can I step back to previous breakpoint while debugging in Android Studio? (Drop the frames)

查看:51
本文介绍了在 Android Studio 中调试时,我可以退回到上一个断点吗?(丢帧)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够执行我刚刚跨过的上一个断点

我知道 Android Studio 是基于 Intellij Idea 的

那么有没有办法启用这个按钮?

解决方案

您所指的关于 Eclipse 的答案对 Android Studio 仍然有效:

不能退回到 Android Studio 中的上一个断点,因为 DalvikVMAndroid 运行时 (ART) 可以不支持.

如果您在 JUnit 测试在标准虚拟机上运行时对其进行调试,则可以启用Drop Frame"按钮(尽管我猜这不是您想要的).

这可能是按钮存在的唯一原因.

Google 的用户指南完全忽略了它.

I would like to be able to execute previous breakpoint that I've just stepped over

I know Android Studio is based on Intellij Idea where it's possible link here. Similar question asking the same but its related to Eclipse IDE link here

There is also one answer that say's it's impossible. link here

I can see "Drop Frame" button. But it's disabled by default.

So is there any way to enable this button?

解决方案

The answer you are referring to regarding Eclipse is still valid for Android Studio:

You cannot step back to previous breakpoint in Android Studio because DalvikVM and Android Runtime (ART) do not support it.

You can enable the "Drop Frame" button if you debug JUnit tests as they run on a standard virtual machine (although I'm guessing this is not what you are after).

It is probably the only reason why the button exists.

Google's User Guide ignores it completely.

这篇关于在 Android Studio 中调试时,我可以退回到上一个断点吗?(丢帧)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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