How do I find out what exception was thrown in the Xcode debugger (for iPhone)?

前端 未结 4 887
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 14:45

I\'m learning iPhone programming from Erica Sadun\'s The iPhone Developer\'s Cookbook. When I run the app I created by following the steps in the Temperature Conversion Exa

4条回答
  •  天命终不由人
    2020-12-12 14:56

    Put a breakpoint at objc_exception_throw and run your app via Debug instead of Run

    To clarify, what you're actually seeing when you get an exception without the breakpoint is the same stack trace always - it's the uncaught exception handler. The type of exception is logged to the Run console, but if you want to see a backtrace for where the exception was raised, that's what the breakpoint is for.

提交回复
热议问题