Re: Setting conditional breakpoint on Cocoa method?
Re: Setting conditional breakpoint on Cocoa method?
- Subject: Re: Setting conditional breakpoint on Cocoa method?
- From: Alex Heinz <email@hidden>
- Date: Mon, 28 Jul 2008 01:11:14 -0700
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
}
)
Kinda stupid solution, though.
Alex
On Jul 28, 2008, at 12:02 AM, Graham Cox wrote:
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