Throwing exception - nothing in console


on page 287 of the 3rd edition:

We implement a new initializer, and bork the designated one with a throw exception.

- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle { @throw [NSException exceptionWithName:@"Wrong Initializer" reason:@"Use initForNewItem:" userInfo:nil]; return nil; }

I get an exception (the program halts) but see nothing in the console.


Hm. Sometimes Xcode eats the exception and doesn’t log it to the console… do you have the exception breakpoint on? If so, try hitting Continue in the debug area a few times.