• 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: Breaking to debugger on exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking to debugger on exceptions


  • Subject: Re: Breaking to debugger on exceptions
  • From: Prachi Gauriar <email@hidden>
  • Date: Tue, 20 Apr 2004 19:34:39 -0500

On Apr 20, 2004, at 7:17 PM, Steve Palmer wrote:

While debugging my application, I noticed this appear in the console:

2004-04-20 17:13:43.752 myapp[2128] Exception raised during posting of notification. Ignored. exception: *** -[NSCFArray objectAtIndex:]: index (-1) beyond bounds (0)

However there was no break into the debugger to let me figure out what was happening. Similarly, any NSAsserts I have don't cause a break. What do I have to do to force exceptions and asserts to break into the debugger?


This is a FAQ... you should be able to find an answer the archives, so I encourage you to check there before posting.


In the "Debug" menu, choose "Show Breakpoints". Add a breakpoint for "[NSException raise]". This is essentially the same as typing in "fb [NSException raise]" in the GDB console, which adds a future-break whenever [NSException raise] is called.

-Prachi
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Breaking to debugger on exceptions
      • From: Steve Palmer <email@hidden>
References: 
 >Breaking to debugger on exceptions (From: Steve Palmer <email@hidden>)

  • Prev by Date: Breaking to debugger on exceptions
  • Next by Date: Re: Breaking to debugger on exceptions
  • Previous by thread: Breaking to debugger on exceptions
  • Next by thread: Re: Breaking to debugger on exceptions
  • Index(es):
    • Date
    • Thread