There are always hidden treasures in Eclipse, and here is one: By default, variables might look like which is not always what I want:
How to change the format to hexadecimal (or any other format)?
Changing Format in Variables View
A solution is to select multiple variables and to change the format to Hexadecimal:
Then I have it in the format I have selected:
But this only works for a few (I always have to select the variable(s) and change the format), and worse: I need to do this for every debug session.
Changing Format Globally
A better way is to set the default to what I need on a workspace level. For this there is a setting in the menu Window > Preferences > C/C++ > Debug where I can change the default format (not only for variables):
With this, all my variables are now in hexadecimal format:
Happy Formatting 🙂