Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: SamT on September 28, 2006, 02:01:12 am

Title: Setup type of value during watching variable in debug mode
Post by: SamT on September 28, 2006, 02:01:12 am
Hello all,

Could I setup the type or the display method when I watch the variable in debug mode? For example, I'd like to have a hexadecimal not decimal value of a variable. Please find the picture as below.

By the way, I found the breakpoint function is not 100% correct during debugging. Sometimes I toggle a breakpoint in one line but the program ignore it and run through. Sometimes I toggle a breakpoint in a declaration statement and program stop in that line.

I use lastest nightly build with GDB 6.3.

[attachment deleted by admin]
Title: Re: Setup type of value during watching variable in debug mode
Post by: mandrav on September 28, 2006, 08:43:52 am
Quote
Could I setup the type or the display method when I watch the variable in debug mode? For example, I'd like to have a hexadecimal not decimal value of a variable. Please find the picture as below.

Yes you can, but not for the auto-watches (locals and function args). Only for those watches you add manually.