Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hex in Eclipse Debugger

 
Keith Tingle
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to view an int or char primitive in its hexadecimal representation in the Eclipse debugger?
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic