Author Topic: Cannot change format of local variables in watches while debugging  (Read 2682 times)

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 32
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Cannot change format of local variables in watches while debugging
« Reply #1 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.
(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!]

Offline Totoxa

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: Cannot change format of local variables in watches while debugging
« Reply #2 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!