• 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: Debugging strings in XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging strings in XCode


  • Subject: Re: Debugging strings in XCode
  • From: Mike Lazear <email@hidden>
  • Date: Fri, 14 Nov 2003 16:13:01 -0800

I tried for a few hours but was unable to come up with a custom formatter that will display a simple character string. I read thru the documentation a number of times and found it to be general and vague. Some times they use ( ), sometimes { }, sometimes % % and sometimes [ ] and it appears that it doesn't matter as long as they are paired correctly but I'm not sure because it doesn't clarify that. There are just a couple of examples and they mostly deal with fields of a structure. It messing with the existing custom format from one of the structures I was able to generally see how it works. However, I was never able to get close to formatting a string. If it was some type of a printf format statement it would be easy to format but it doesn't appear to be so.

Is there any "real" documentation for the custom formats that would define the expression syntax and the list of possibilities for formats?

The documentation says to consult the release notes for more information. The release notes contains the exact same document which also says to consult the release notes for more information.

I tried stg = {(char *) ($VAR)} and it show the something like stg = 0xbffff790 which I guess is the address of my string.

Mike



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.

References: 
 >Re: (no subject) (From: Thomas Dibble <email@hidden>)

  • Prev by Date: Re: Managing executable frameworks for multiple projects
  • Next by Date: Re: Perforce Just Crashes?
  • Previous by thread: Re: (no subject)
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread