“Android Studio” debugging - display variables as hexadecimal

前端 未结 2 1601
南旧
南旧 2020-12-11 14:55

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 inst

相关标签:
2条回答
  • 2020-12-11 15:42

    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.

    0 讨论(0)
  • 2020-12-11 15:47

    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

    enter image description here

    Display all values as hex by default

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

    enter image description here

    (Note: these images are from Android Studio 1.2)

    0 讨论(0)
提交回复
热议问题