Xcode 4 does not show exception message

I had an xib file with an old outlet plugged in. This will crash and set a breakpoint on the line by pressing the view controller with:

Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_throw" resolved 

Not very useful, I remember in Xcode 3 I had something like "no output connected"

How do I get this back?

edit: if I check "continue automatically after evaluating actions", I get this message:

 *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<OrderController 0x7942760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key table.' *** First throw call stack: (0x16e1052 0x2182d0a 0x16e0f11 0x4cb032 0x43cf7b 0x43ceeb 0x457d60 0x99991a 0x16e2e1a 0x164c821 0x99846e 0x83fe2c 0x8403a9 0x8405cb 0x840941 0x85247d 0x85266f 0x85293b 0x8533df 0x853986 0xcf67dbd 0x8535a4 0x3a3da 0x841fbf 0x8422d4 0x8425d7 0x842785 0x85c0a5 0x842730 0x78b5ea 0x16b59ce 0x164c670 0x16184f6 0x1617db4 0x1617ccb 0x18f7879 0x18f793e 0x77aa9b 0x276d 0x1fd5) terminate called throwing an exceptionCurrent language: auto; currently objective-c (gdb) 0x99991a 0x16e2e1a 0x164c821 0x99846e 0x83fe2c 0x8403a9 0x8405cb 0x840941 0x85247d 0x85266f 0x85293b 0x8533df 0x853986 0xcf67dbd 0x8535a4 0x3a3da 0x841fbf 0x8422d4 0x8425d7 0x842785 0x85c0a5 0x842730 0x78b5ea 0x16b59ce 0x164c670 0x16184f6 0x1617db4 0x1617ccb 0x18f7879 0x18f793e 0x77aa9b 0x276d 0x1fd5) *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<OrderController 0x7942760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key table.' *** First throw call stack: (0x16e1052 0x2182d0a 0x16e0f11 0x4cb032 0x43cf7b 0x43ceeb 0x457d60 0x99991a 0x16e2e1a 0x164c821 0x99846e 0x83fe2c 0x8403a9 0x8405cb 0x840941 0x85247d 0x85266f 0x85293b 0x8533df 0x853986 0xcf67dbd 0x8535a4 0x3a3da 0x841fbf 0x8422d4 0x8425d7 0x842785 0x85c0a5 0x842730 0x78b5ea 0x16b59ce 0x164c670 0x16184f6 0x1617db4 0x1617ccb 0x18f7879 0x18f793e 0x77aa9b 0x276d 0x1fd5) terminate called throwing an exceptionCurrent language: auto; currently objective-c (gdb) 

which is better than a sketch, but the breakpoint stops at main.m! Here is the current setting of my breakpoint

enter image description here

+6
source share
2 answers

The mystery is solved. At least for me, by clicking "continue", a couple of times it was allowed to print an error on the console.

The problem (in this case) had a couple of other custom breakpoints (objc_exception_throw, - [NSException raise]).

The inclusion of "continue automatically after evaluation" for BOTH allowed the process to be killed without manual intervention, around this time a detailed error message was printed on the console.

Hope this helps.

+2
source

If you have multiple projects, make sure the breakpoint is active for the correct project. In this case, I recommend using the Xcode 4 workspace and assigning a global exception breakpoint to the workspace. You can do this by right-clicking the breakpoint in the Breakpoints Navigator panel and selecting Move Breakpoint To ...

0
source

Source: https://habr.com/ru/post/905185/


All Articles