views:

31

answers:

1

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?".)

+1  A: 

Not exact what you want but as I know in DEBUG MODE, there is an option for primitive Types (int, long,...).

 Switch to Debug perspective.
 In the Variables view click the "menu" item (triangle item before minimize) and select "Java Primitives...".
 In the Dialog you can choose between Hex view, Ascii view and unsigned (for byte).

Found this, maybe help: Inside the Memory View

pinichi
I can't figure out how to bring up a menu with "Java Primitives…"
Daryl Spitzer
Ah, I found Java Preferences, and then found "Display hexadecimal values" and "Display unsigned values" under "Primitive Display Options".
Daryl Spitzer
see my screenshot here:http://postimage.org/image/1q2ifn2as/
pinichi
Yes, on 3.2.x have that option in Settings, same way from the "menu" on triagle > Setting...A bit difference since mine is 3.1.x
pinichi