As a new user of Visual GDB I was very pleased to be able to use VS2010 to develop code for the Raspberry Pi. All is going well so far.
However I am getting frustrated at not being able to find a setting which displays watch variables & tooltip pop-ups of variable contents in hex.
unsigned chars are always displayed in octal.
The visual studio debugger “Hex” button doesnt seem to help
Any clues??
Could you please post a screenshot here showing the octal view of unsigned chars?
Usually characters are displayed in either decimal or hexadecimal mode (“Hex” button switches the mode) in addition to displaying the letter itself.
The hexadecimal mode applies only to individual characters not to the entire string, press on the ‘+’ in front of the response variable to see the hexadecimal vs decimal difference of individual characters.
The string view of a character array tries to translate the character values to letters and then assembles a string from them, that is why the hex mode shows no difference in the entire string view.
Yes, I understand that.
Its just that if its going to show me a set of numbers for the array of unsigned chars it would be much more helpful to see it in hex (or even decimal) not octal.
I was hoping you might have some control over this but If it’s a VS2010 issue I guess I could try bugging M$ but I wont hold my breath.
It is how gdb reports the string. While debugging if you change the view mode to ‘All GDB interaction’ in the GDB Session window and then hover over the variable, you will see what gdb replies as the variable value.