Is it possible to simultaneously consider int as decimal AND hexadecimal in intellij?

When debugging intellij, I can say that it displays the given int variable with its decimal value or hexadecimal value.

Is it possible for the debugger to display BOTH at the same time?

+4
source share
3 answers

No, It is Immpossible.

When debugging, you can right-click on an integer variable and select View As >and either Hex, or Primitive, not both.

This option applies to only one variable and does not seem to persist through different debugging sessions.

Data Renderer ( Customize Data Views..., ).

A Data Renderer ( ). , int, 38 0x26, (, Person.age), , .

String watch, String , int.

, , , , .

+2

, , , Android Studio 2.1, intellij. → ... → → → Java . .

+1

Starting with IDEA 2016.3, you can define custom Renderers Java types for primitive types (including arrays): https://www.jetbrains.com/idea/whatsnew/#v2016-3

With this function, you can display your primitive value in any way.

0
source

All Articles