Author Topic: Watch variables and see values in arrays?  (Read 5035 times)

Offline Mars_999

  • Multiple posting newcomer
  • *
  • Posts: 11
Watch variables and see values in arrays?
« 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Watch variables and see values in arrays?
« Reply #1 on: June 09, 2012, 06:23:08 pm »
Right click-> Properties -> As array  (set start and count).
(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 Mars_999

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Watch variables and see values in arrays?
« Reply #2 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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Watch variables and see values in arrays?
« Reply #3 on: June 09, 2012, 07:01:46 pm »
You don't see the properties dialog, when you right click on the watch?
(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 Mars_999

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Watch variables and see values in arrays?
« Reply #4 on: June 09, 2012, 07:18:28 pm »
You don't see the properties dialog, when you right click on the watch?




« Last Edit: June 09, 2012, 07:21:09 pm by Mars_999 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Watch variables and see values in arrays?
« Reply #5 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.
(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!]