views:

1408

answers:

2

this was the answer from the brad larson on this SO question

If you add two breakpoints, you should be able to debug these exceptions. To do this, go to Run | Show | Breakpoints and create two global breakpoints (I do them globally because they are so useful in all my applications). The first should be named "objc_exception_throw" and its location should be "libobjc.A.dylib". The second should be "-[NSException raise]" and its location should be "CoreFoundation".

Now, if you start debugging your application with breakpoints enabled, it should break on the throw of these exceptions. You should then be able to see the chain of events that led to the exception within the debugger.

now in this answer i want to ask how do i add location mentioned???

+22  A: 
h4xxr
thanks for your very clear answer
Rahul Vyas
This is really helpful, thanks // :)
Spanky
Works great. Thanks for the detail.
Rob Segal
A: 

I would also like to recommend adding the "+[NSException raise:format:arguments:]" breakpoint and its location should be "CoreFoundation"

Ameer Sheikh