How do I display a byte array as an array of hex bytes or unsigned decimal numbers in the Eclipse Java debugger?

Viewed 29669

I want to view a byte array in the Eclipse (Helios Release, build id: 20100617-1415) Java debugger as an array of hex bytes (2 digits each) or unsigned decimal numbers? Is that possible? How?

For example, I want to display this:

alt text

...as: 0, 48, 71, 22, 139, 166, ...

...or as: 0x00, 0x30, 0x47, 0x16, 0x8B, 0xA6, ...

(This is a similar question to "How do I display a byte array as a char array in the Eclipse Java debugger?".)

5 Answers

For eclipse neon IDE

Displaying values in hexadecimal format

goto Windows -> Preferences -> Java -> Debug -> Primitive Display option -> Display Hexadecimal values(byte,short,char,int,long)

enable the option and press OK

NOTE: This works in debug mode

Related