[lldb-dev] Exceptions with lldb

Carlo Kok ck at remobjects.com
Thu Oct 18 10:11:00 PDT 2012

I managed to get notified of an objc exception by setting an exception 
breakpoint, but how do I get access to the actual exception information 
(for an NSException, the object maybe? not sure what info is available 

the bp itself only seems to have this:
Stop reason: eStopReasonBreakpoint
two stop reason data items 0, 1
no SPValue.

"breakpoint 1.1" as a reason string.

Only when an BAD_ACCESS escapes the program I get an exception "break" 
with stop reason eStopReasonException:

Stop Reason: "EXC_BAD_ACCESS (code=2, address=0x10aa95f0d)"


Carlo Kok

More information about the lldb-dev mailing list