“安卓工作室"调试 - 以十六进制显示变量 [英] "Android Studio" debugging - display variables as hexadecimal
问题描述
我最近从 Eclipse 转移到了 Android Studio,它看起来很棒.但是,我似乎找不到如何在调试模式下将变量显示为十六进制值而不是十进制值.任何帮助,将不胜感激.谢谢
I've recently moved from Eclipse to Android Studio, and it looks great. However, I can't seem to find how to display variables in debugging mode as hexadecimal values instead of decimal values. Any help would be appreciated. Thanks
推荐答案
我想知道 同样的事情,尤其是@adnako 问的默认情况下如何做到这一点.我终于找到了答案,所以我也会在这里发帖.
I was wondering the same thing, especially how to do this by default as @adnako asked. I finally found an answer so I will post here, too.
右键单击 >查看为... >十六进制
Right click > View as... > Hex
右键单击 >自定义数据视图... >显示基元的十六进制值 >申请
Right click > Custimize Data Views... > Show hex values for primitives > Apply
(注意:这些图片来自 Android Studio 1.2)
(Note: these images are from Android Studio 1.2)
这篇关于“安卓工作室"调试 - 以十六进制显示变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!