Xcode 5 does not print exception details

I have a project created for iOS 7, and so far it worked fine, but after merging Git some settings or something became damaged, and exceptions are no longer displayed on the console . Therefore, the "Application termination due to an uncaught exception" error message never appears in the console. I tried the project on both the device and the simulator, the same thing. I cannot find a reason why this is and how to fix it, and I humbly ask you for help.

Facts:

  • the debugger works and works,
  • The debugger stops and selects the correct line,
  • all exception checkpoints are active,
  • NSLog teams work,
  • The po command in lldb works.

What have I tried before asking for help?

  • Cleaning (including assembly) and restoration of the project,
  • Restart xcode,
  • Restart OS X,
  • Reconnection device,
  • Reboot device.

What else can I do? Thanks for the help!

+8
ios objective-c xcode xcode5
source share
1 answer

I ran into this problem while trying to debug a car crash. Not sure if this applies to all cases, but here is my solution:

I hunted a little and came across this link:

NSExceptions Research with LLDB

This led me to exceptions to try to figure out what the problem was. In my case, I could always find the description on $eax , so I decided to add the action to the breakpoint, so I do not need to debug it every time. This led to the fact that he always printed $eax without a breakpoint, so it pretty much acts the way I want (print description of exception, continue to crash).

Steps:

Add an Exception Breakpoint

Edit the breakpoint you just added

Add an action to <code> po $ eax </code>, and check "automatically continue after evaluating"

I solved the problem that I currently had, and I am sure that variants of this solution ( po $ebx , po [NSThread callStackSymbols] , etc.) should cover most of the problems with no exception descriptions.

+5
source share

All Articles