Code::Blocks Forums

User forums => Help => Topic started by: Totoxa on August 05, 2018, 09:55:47 pm

Title: Cannot change format of local variables in watches while debugging
Post by: Totoxa on August 05, 2018, 09:55:47 pm
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?
Title: Re: Cannot change format of local variables in watches while debugging
Post by: 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.
Title: Re: Cannot change format of local variables in watches while debugging
Post by: Totoxa on September 03, 2018, 03:50:19 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!