This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
subject: Hex in Eclipse Debugger
Similar Threads
Problem running a program practicing with Arrays and Classes
Where can I find videos to learn Eclipse IDE ?
eclipse debugger is dead
How to pass parameters from one JSP to another JSP
"if" thinks false is true