Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Jim Ingham <email@hidden>
- Date: Fri, 14 Nov 2003 10:48:04 -0800
To be fair, what you are actually asking is that Xcode present an array
of characters as a character string. If you have a (char *) variable,
then Xcode will show you the value as a string in the summary field.
We can't just show a character array as a string however, 'cause
somebody will legitimately want to see the array of characters as an
array of characters (particularly if they care what element 15 is or
they want to see past the first null.)
Still it seems reasonable that the summary view of a char array be the
array pointer cast as a char *. If you file a bug on this, I bet one
of the GUI debugger folks will add it, it would be pretty simple to do.
If you don't want to muck with the custom formatters, you can just use
the expressions window, and enter "(char *) myCharArray".
Jim
On Nov 14, 2003, at 10:02 AM, Thomas Dibble wrote:
I'm not suggesting that it's an ideal solution, but it seems it would
work better than going to the console at every step in debugging ...
---- Tom Dibble
On Friday, November 14, 2003, at 03:21 AM, Dario Accornero wrote:
On 14 Nov 2003, at 0:10, Thomas Dibble wrote:
Have you looked into a custom formatter?
Are you actually suggesting we use a custom formatter to display a
simple character string in the debugger? I understand the expression
would be pretty simple in this case, but still -- this is overkill.
Dario
_______________________________________________
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.
_______________________________________________
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.