Search code examples
android-studiosettingsdefault

View values as hexidecimal by default while debugging in Android Studio


My question is similar to "Android Studio" debugging - display variables as hexadecimal, but I want to know how to make this the default setting.

I know how to change the setting for individual values:

enter image description here

but for checking the values of all the characters in long strings, this becomes tedious. Unicode characters are much more readable when displayed in hex. Is there any way to set this as the default in Android Studio? I looked in File > Settings > Debugger but I didn't see anything.


Solution

  • Right click to get the context menu and choose "Custimize Data Views...".

    enter image description here

    Then check "Show hex values for primitives".

    enter image description here

    Now the values should automatically display in hexadecimal without having to manually change each one.

    enter image description here