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
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
Manually change a single value
Right click > View as... > Hex
Display all values as hex by default
Right click > Custimize Data Views... > Show hex values for primitives > Apply
(Note: these images are from Android Studio 1.2)
回答2:
In the debug window, right click on the value you would like to view in hex and choose View as -> Hex
. This can be done in the Variables
or Watches
views.