• 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
Breakpoint when NSString gets set to a certain value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Breakpoint when NSString gets set to a certain value?


  • Subject: Breakpoint when NSString gets set to a certain value?
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 19 Jul 2013 22:45:10 -0700

The 'leaks' tool has identified several NSString objects that my app is leaking.  But neither 'leaks' nor Instruments > Leaks identifies the responsible frame in my code.  The 'leaks' tool gives me the string value, but I still need more clues to find it in my code.

This string appears to be the 'path' of a file:// NSURL, which is also leaking, so I surmise it is actually the NSURL which is leaking.

Does anyone know a method in NSURL or NSString in which I could set a breakpoint with a condition to trigger whenever its path or string gets set to a certain value?

Thanks,

Jerry

I've tried the following Symbolic Breakpoints…

-[NSString initWithString:]
-[NSURL initWithScheme:host:path]
-[__NSCFString init]

with *no* breakpoint conditions, but, to my surprise, I get no breaks at all!  Maybe Apple has optimized these methods so much that they only really exist in the documentation nowadays?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Breakpoint when NSString gets set to a certain value?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Threads
  • Next by Date: Re: Breakpoint when NSString gets set to a certain value?
  • Previous by thread: Re: Threads
  • Next by thread: Re: Breakpoint when NSString gets set to a certain value?
  • Index(es):
    • Date
    • Thread