• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Data Formatters in 2.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Data Formatters in 2.2 (From: Jerry <email@hidden>)

  • Prev by Date: Re: Debugger window [preferably not] opening on crash
  • Next by Date: xcode dynamic_cast error with GCC4
  • Previous by thread: Re: Data Formatters in 2.2
  • Next by thread: Debugger window [preferably not] opening on crash
  • Index(es):
    • Date
    • Thread