News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Cannot change format of local variables in watches while debugging

Started by Totoxa, August 05, 2018, 09:55:47 PM

Previous topic - Next topic

Totoxa

I use Codeblocks mostly for embedded development and lots of times I need to view the variables in hexadecimal format, when trying to change the format of the local variables that are automatically added to the watches windows the option is grayed out, so I have to manually add the local variable and change the format.

Why the option is grayed out?

oBFusCATed

Because we use different gdb commands to print locals (info locals), arguments (info args) and normal watches (print/output).
As far as I know only the print/output commands have special flags to specify formatting of the data.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Totoxa

Quote from: oBFusCATed on August 06, 2018, 08:57:20 AM
Because we use different gdb commands to print locals (info locals), arguments (info args) and normal watches (print/output).
As far as I know only the print/output commands have special flags to specify formatting of the data.

Ok, thanks!