2015-04-04

Viewing exception in lldb

It has been a while since I wrote one of these. Time to do it again.

My app aborted on an assertion.

I had the "All Exceptions" breakpoint enabled.


I got this line in Xcode console.
*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-3318.93/UITableView.m:1314
In the Debug navigator, I click on the objc_exception_throw frame.


In the Console of the Debug area, I type in:
expr -o -- $eax
And this tells me exactly what my problem is.


Note: the $eax only works in the Simulator. When debugging on an actual device use $r0.

No comments:

Post a Comment