On Sep 25, 2013, at 1:24 PM, Jens Alfke wrote:

> 
> On Sep 25, 2013, at 10:16 AM, Kyle Sluder <k...@ksluder.com> wrote:
> 
>> Please note that the breakpoint traps on exception *throw*. It is perfectly 
>> valid—daresay common—for C++ code to throw and catch exceptions as a normal 
>> matter of course.
> 
> Some of the system code does it, yeah; I know the innards of the Security 
> framework do. But it’s widely considered bad design to use exceptions for 
> normal flow control. It’s also expensive — modern “zero-overhead” exception 
> runtimes make ‘try’ blocks very cheap but at the overhead of making ‘throw’ 
> very slow.
> 
> Anyway, as you said, the fix is to make your All Exceptions breakpoint 
> ObjC-only. I’ve seen almost no system code that throws and internally catches 
> Obj-C exceptions, although it might arise in code that uses DO or XPC.
> 
> —Jens

Since this is so useful, is there any way to make each project we create 
automatically gets an exception breakpoint set to All Objective-C Exceptions?

Thanks.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to