Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Mars_999 on June 09, 2012, 05:46:39 pm

Title: Watch variables and see values in arrays?
Post by: Mars_999 on June 09, 2012, 05:46:39 pm
How can I check the values of an array or vector in the watch window? I can't see to find anyway to expand the array.

Thanks!
Title: Re: Watch variables and see values in arrays?
Post by: oBFusCATed on June 09, 2012, 06:23:08 pm
Right click-> Properties -> As array  (set start and count).
Title: Re: Watch variables and see values in arrays?
Post by: Mars_999 on June 09, 2012, 06:31:47 pm
Right click-> Properties -> As array  (set start and count).

thanks for the post, but I don't see that anywhere.

This is with 10.05 build... if that matters...
Title: Re: Watch variables and see values in arrays?
Post by: oBFusCATed on June 09, 2012, 07:01:46 pm
You don't see the properties dialog, when you right click on the watch?
Title: Re: Watch variables and see values in arrays?
Post by: Mars_999 on June 09, 2012, 07:18:28 pm
You don't see the properties dialog, when you right click on the watch?

(http://img803.imageshack.us/img803/2962/67513509.png) (http://imageshack.us/photo/my-images/803/67513509.png/)


Title: Re: Watch variables and see values in arrays?
Post by: oBFusCATed on June 09, 2012, 08:04:46 pm
I have no 10.05 around here, nor remember how it was done in it, but I'm sure it is supported.
Try a nightly build, there it works perfectly, at least for arrays.
Watching vectors is tougher and most of the time requires python enabled gdb.