Re: catching exceptions

2020-06-12 Thread David Chisnall

On 12/06/2020 12:07, Andreas Fink wrote:

Does anyone know how I can catch these exceptions in lldb:

Throwing 0x7f2fa8004588, in flight exception: 0x7f2fa8004588
Exception caught by C++: 0

the usual

break set -S raise


I'm not sure what that does.  I set breakpoints on __cxa_throw and 
objc_exception_throw to get the debugger to tell me where exceptions are 
thrown.


David




Re: catching exceptions

2020-06-12 Thread Andreas Fink
thanks thats what I was looking for
break set -S raise catches any call to [NSException raise]

> On 12 Jun 2020, at 13:36, David Chisnall  wrote:
> 
> On 12/06/2020 12:07, Andreas Fink wrote:
>> Does anyone know how I can catch these exceptions in lldb:
>> Throwing 0x7f2fa8004588, in flight exception: 0x7f2fa8004588
>> Exception caught by C++: 0
>> the usual
>> break set -S raise
> 
> I'm not sure what that does.  I set breakpoints on __cxa_throw and 
> objc_exception_throw to get the debugger to tell me where exceptions are 
> thrown.
> 
> David
> 
>