Sometimes (meaning quite often) when I try to debug crashes from an iPad App, LLDB decides not to be too helpful and printing of variables (stack or class members) fails to work.
If I right-click (or CTRL+click) a variable in the debug window on the left and then "Print description" I get error messages like the following:
Printing description of error:
(NSURLError *) error = <register sp is not available>
or
Printing description of error:
(NSURLError *) error = <register ebp is not available>
If I try to use the debug console myself I get something like this:
(lldb) po error
(NSError *) $3 = 0x2124fc10 [no Objective-C description available]
Afterwards the right click seems to start working and yields the following:
Printing description of error:
(NSURLError *) error = 0x2124fc10
But all I get is the memory address, it fails to call description
on it it seems.
If I try to send the description
message this happens:
(lldb) po [error description]
error: Execution was interrupted.
The process has been returned to the state before execution.
So this is not helpful either. What can be done to make the debugger usable again? I desperately have to catch a crash but everytime I can provoke it the above happens and I have no clue how to get to the error's core.
I googled for "register not available lldb" but found nothing, just some pastebin logs, no answers.
FYI: Using Xcode 4.5.2, iOS SDK 6.0, compiling "Debug"-Profile, no optimizations turned on, LLDB Debugger, iOS deployment target 5.0, happens on debugging in Simulator or on device (iPad 1 and 3, iPhone 4S, iPhone 3GS), debugged App is using GCD quite extensively.