Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: DaveHarper on December 02, 2018, 09:18:59 pm

Title: Watch Window Display Format
Post by: DaveHarper on December 02, 2018, 09:18:59 pm
I'm looking at switching to Code::Blocks from my current IDE because that one won't allow me to set the display format of individual variables in the watch window.  I didn't find anything in the Code::Blocks manual regarding this but I did find a similar request (msg 1537) from 2005 that indicated it would be implemented soon.  Has this been done?  I've tried right-clicking on the variable/value in the window but there are no options for setting the format.  I've also gone through the various Settings and anything else I can think of but haven't found anything so far that would let me control this.  For me, this is a show-stopper on any IDE - I find I spend more time with a programmers calculator doing format conversions than I do debugging my program.

Thanks,
Dave

P.S.  I should mention that when I right-click on a variable in the watch window I get a drop-down menu with a number of entries, but all are greyed out except for Delete All at the bottom.  There is a Properties option that looks promising if I could access it but all variables in the watch window give me the same disabled drop-down options.
Title: Re: Watch Window Display Format
Post by: oBFusCATed on December 02, 2018, 10:20:56 pm
Right click on a watch -> Properties?
Title: Re: Watch Window Display Format
Post by: DaveHarper on December 02, 2018, 10:21:11 pm
After doing a lot of poking around I've found that I cannot alter the Local variables as shown in the Watches window.  However, I can add the same exact variable separately and, once I do that, I can set the display format.  Sheesh.
Title: Re: Watch Window Display Format
Post by: oBFusCATed on December 02, 2018, 10:22:07 pm
Yes, local variables and function arguments doesn't support formatting at the moment. With the current pluign I don't think it is even possible.
Title: Re: Watch Window Display Format
Post by: DaveHarper on December 02, 2018, 10:22:15 pm
Right click on a watch -> Properties?
The problem is that the Properties options is disabled (greyed out).  However, I have found a workaround.
Title: Re: Watch Window Display Format
Post by: oBFusCATed on December 02, 2018, 10:42:01 pm
It is intentionally disabled, because it is not possible to implement the options provide by the dialog.