User forums > Using Code::Blocks

Setup type of value during watching variable in debug mode

(1/1)

SamT:
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]

mandrav:

--- 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.
--- End quote ---

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

Navigation

[0] Message Index

Go to full version