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

Re: Setting conditional breakpoint on Cocoa method?


  • Subject: Re: Setting conditional breakpoint on Cocoa method?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 28 Jul 2008 22:33:51 +1000

I need to break on a Cocoa method that I don't have the source to. If I had the source, I could just set a breakpoint by clicking in the margin in the usual way.

Thanks anyway,


Graham

On 28 Jul 2008, at 6:11 pm, Alex Heinz wrote:

There's probably a better way, but you could create an if statement containing a log message (or something) that has a breakpoint (e.g.:

if (aString == nil)
{
	NSLog(@"blah") <-- Breakpoint here
}

)

_______________________________________________

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


References: 
 >Setting conditional breakpoint on Cocoa method? (From: Graham Cox <email@hidden>)
 >Re: Setting conditional breakpoint on Cocoa method? (From: Alex Heinz <email@hidden>)

  • Prev by Date: Re: Setting conditional breakpoint on Cocoa method?
  • Next by Date: Re: NSTextView + other NSView in NSScrollView?
  • Previous by thread: Re: Setting conditional breakpoint on Cocoa method?
  • Next by thread: Re: Setting conditional breakpoint on Cocoa method?
  • Index(es):
    • Date
    • Thread