• 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
Setting conditional breakpoint on Cocoa method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting conditional breakpoint on Cocoa method?


  • Subject: Setting conditional breakpoint on Cocoa method?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 28 Jul 2008 17:02:53 +1000

Once in a blue moon, I get a console message that a nil string was passed to [NSConcreteAttributedString initWithString:] I'd like to find out where this is coming from by setting a breakpoint there, but only for a nil string. Adding the breakpoint as a symbol to the symbolic breakpoints works, but I can't set the condition (e.g. aString == nil), since the parameter's name isn't available.

What can I do, since this method is called hundreds of times in the normal course of things, so just having an unconditional breakpoint isn't very useful. Can I specify a register somehow?

tia,

Graham

_______________________________________________

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: Setting conditional breakpoint on Cocoa method?
      • From: "Chris Suter" <email@hidden>
    • Re: Setting conditional breakpoint on Cocoa method?
      • From: "Jonathan del Strother" <email@hidden>
    • Re: Setting conditional breakpoint on Cocoa method?
      • From: Alex Heinz <email@hidden>
  • Prev by Date: Re: NSGraphicsContext restore crashes my xtension
  • Next by Date: Re: IB not recognizing class hierarchy
  • Previous by thread: [Moderator] iPhone SDK still in effect
  • Next by thread: Re: Setting conditional breakpoint on Cocoa method?
  • Index(es):
    • Date
    • Thread