Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode stack trace not appearing in console

I am used to having a stack trace appear in the console when I don't catch an exception and it throws it back to the main function. Is there a build setting somewhere in Xcode 4.2 that I don't have on? Right now, it shows nothing in the console at all.

like image 574
Samuel Hicks Avatar asked Oct 31 '11 23:10

Samuel Hicks


1 Answers

Try adding a breakpoint on exception.

  1. Click on the breakpoint's tab (cmd + 6)
  2. Click the add ('+') button bottom left.
  3. Click 'Add Exception Breakpoint...'
  4. Leave the defaults and click done.

Now when an exception is thrown it should drop you into debugger at the line that throws the exception.

like image 130
Paul.s Avatar answered Oct 29 '22 23:10

Paul.s