Re: Data Formatters in 2.2
Re: Data Formatters in 2.2
- Subject: Re: Data Formatters in 2.2
- From: Chris Friesen <email@hidden>
- Date: Fri, 2 Dec 2005 14:17:48 -0800
On Dec 2, 2005, at 1:35 AM, Jerry wrote:
Are data formatters supposed to work in Xcode 2.2? I just get the
text of the formatter in the summary column in gray (e.g. %(char *)
$VAR.c_str():s%). Actually I've never seen data formatters work in
any version of XCode across any of the 3 machines I have it
installed on, but I gather from posts on the lists that they must
have worked for some people at some time.
Jerry
That is not the correct data formatter syntax to evaluate an
expression. You should have '{' '}' around the expression instead of
'%'. The '%' syntax is for referencing children you see when turning
down a variable. Something like %_M_dataplus._M_p%:s should show the
string value of an std::string. If you delete your data formatter you
will get the default data formatter if there is one for that type.
The default formatter for an std::string is:
size={(int)$VAR.size()} "{(char *)$VAR.c_str()}:s"
Cheers,
ChrisF
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden