• 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: Steve Palmer <email@hidden>
  • Date: Tue, 20 Apr 2004 17:45:52 -0700

Thanks. Umm.. If you mean searching the archives at http://search.lists.apple.com then I tried that but after wading through a huge number of false positives, I gave up. The results list provide no easy way to zero in on what could be the appropriate message that answers my query. Is there a better organised archive I could search instead?

- Steve



On Apr 20, 2004, at 5:34 PM, Prachi Gauriar wrote:


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.


References: 
 >Breaking to debugger on exceptions (From: Steve Palmer <email@hidden>)
 >Re: Breaking to debugger on exceptions (From: Prachi Gauriar <email@hidden>)

  • Prev by Date: Re: Breaking to debugger on exceptions
  • Next by Date: Comparing XCode build times with GCC and make
  • Previous by thread: Re: Breaking to debugger on exceptions
  • Next by thread: Re: Breaking to debugger on exceptions
  • Index(es):
    • Date
    • Thread