File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Hex in Eclipse Debugger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Hex in Eclipse Debugger" Watch "Hex in Eclipse Debugger" New topic

Hex in Eclipse Debugger

Keith Tingle

Joined: Jan 12, 2004
Posts: 22
Is there a way to view an int or char primitive in its hexadecimal representation in the Eclipse debugger?

SCJP - 8/31/2004
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
In the variables, expressions, and monitors views, you'll notice an inverted black triangle in the title bar. Click on it to open a menu.

From that menu, select "Java Primitives..." and a dialog will open prompting for your "Primitive Type Display Options" and giving you 3 options with check boxes:

Display hexadecimal values
Display ASCII character Values
Display unsigned values

Check those boxes you want, and click OK.

You can now see the selected values in addition to the original value in the view.

Very useful at times -- thanks for making me go find it.

"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The team, Newsletter 039.
I agree. Here's the link:
subject: Hex in Eclipse Debugger
It's not a secret anymore!