• 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: Exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exceptions


  • Subject: Re: Exceptions
  • From: Andreas Monitzer <email@hidden>
  • Date: Tue, 29 May 2001 00:21:36 +0200

On Monday, May 28, 2001, at 11:38 , Steve Gehrman wrote:

When I run my app I'm getting....

May 28 14:27:34 MyApp[3003] Exception raised during posting of notification. Ignored. exception: *** -[NSCFArray addObject:]: attempt to insert nil

Is there a way to get gdb to stop when it hits an exception like this?

http://www.cocoadevcentral.com/qa/showpage.php?show=00000007.php

// Question Two

Is it possible to make my project in PB break whenever a NSException is raised?

Answers

at the gdb prompt type

b -[NSException raise]

answer by: Henri Lamiraux

If you want to break on something that is not yet loaded, use "fb" rather than "b".

answer by: Douglas Davidson


References: 
 >Exceptions (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: Exceptions
  • Next by Date: Re: ObjC Method naming
  • Previous by thread: Re: Exceptions
  • Next by thread: Re: Exceptions
  • Index(es):
    • Date
    • Thread