Re: Breakpoint on @throw?
Re: Breakpoint on @throw?
- Subject: Re: Breakpoint on @throw?
- From: Steven Kramer <email@hidden>
- Date: Mon, 17 Jan 2005 19:24:59 +0100
Op 17-jan-05 om 18:23 heeft Aaron Hillegass het volgende geschreven:
So, to stop on exceptional conditions in gdb, I'd create a breakpoint:
> fb - [NSException raise]
This works great, but with new style exceptions the raise becomes an
@throw:
if (x == 13) {
NSException *badness = [NSException
exceptionWithName:@"BadLuckException"
reason:@"13 is
unlucky"
userInfo:nil];
@throw badness;
}
(Don't forget "-fobjc-exceptions" when you build.)
Does anyone know how to put a breakpoint on @throw? Thanks.
@throw is mostly syntactic sugar for [NSException raise]. You can still
break on raise.
Regards,
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden