Re: Basic xcode debugging question
Re: Basic xcode debugging question
- Subject: Re: Basic xcode debugging question
- From: Maximino Salazar-Lechuga <email@hidden>
- Date: Mon, 23 Feb 2004 19:12:11 +0000
Jim,
That information was really helpful.
Thank you, Max.
On 23 Feb 2004, at 19:01, Jim Ingham wrote:
There is a way to do this in gdb. We plan to have a "view as array"
command in a future version of Xcode so this is more convenient from
the UI. But for now, you can use the gdb expression syntax in the
Expressions window. So, open the Expressions window and enter, for
example:
*pop@20
This will show you the first 20 elements of the pop array. If you
want to start further into the array, you can do:
*(pop+20)@20
which will show the 20 elements after element 20... If you want read
more about this, have a look at:
file:///Developer/Documentation/DeveloperTools/gdb/gdb/gdb_9.html#SEC53
the section on "artificial arrays" in the gdb manual.
Hope this helps,
Jim
On Feb 23, 2004, at 8:29 AM, Maximino Salazar-Lechuga wrote:
Hi,
I'm new to xcode and been looking for an answer to a simple question
without any luck. I'm debugging a program which uses pointers of the
type:
double *pop;
where pop is an array of values. Is there an option in the debugger
to see all the values in that array?
Because the value given by the debugger is a memory location (and the
first value in that location), but I'm interested in the value at
that location and also the followings, not just the first one. One
option is to define each of the values I want to see in the
"Expressions" window, like:
pop[0]
pop[1]
...
and so on...
But when the array is so big, this is obviously not an option.
Any guidance on this matter will be very appreciated.
Thank you, Max.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.