" Android的工作室"调试 - 显示变量为十六进制量为、工作室、QUOT、Android

2023-09-07 04:05:24 作者:Absurd

我最近搬到从Eclipse来Android的工作室,它看上去很不错。不过,我似乎无法找到如何显示在调试模式下的变量为十六进制值而不是十进制值。 任何帮助将是AP preciated。 谢谢

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

推荐答案

我想知道the同样的事情,特别是如何在默认情况下做到这一点的@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

右键点击> Custimize数据视图...>原语显示十六进制值>应用

Right click > Custimize Data Views... > Show hex values for primitives > Apply

(注:以下图片均来自Android的工作室1.2)

(Note: these images are from Android Studio 1.2)

 
精彩推荐
图片推荐