• 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: Breakpoint on @throw?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoint on @throw?


  • Subject: Re: Breakpoint on @throw?
  • From: John Draper <email@hidden>
  • Date: Tue, 18 Jan 2005 16:30:45 -0800

Steven Kramer wrote:


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

> fb - [NSException raise]

Is this typed into the "gdb" command line to set this breakpoint? and is this the right
syntax?


John
_______________________________________________
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


  • Follow-Ups:
    • Re: Breakpoint on @throw?
      • From: Prachi Gauriar <email@hidden>
  • Prev by Date: Encryption Query
  • Next by Date: NSMatrix Subclassed NSScrollView viewable area width?
  • Previous by thread: Re: Breakpoint on @throw?
  • Next by thread: Re: Breakpoint on @throw?
  • Index(es):
    • Date
    • Thread