Debugging uncaught exception in Xcode

前端 未结 2 810
青春惊慌失措
青春惊慌失措 2021-02-05 16:53

I\'m trying to get better at using Xcode. I have the AllExceptions break point turned on. When my app crashes, I see this:

*** Terminating app due to uncaught          


        
2条回答
  •  星月不相逢
    2021-02-05 17:28

    In Xcode,

    1. go to Breakpoint navigator on the left pane.
    2. Click '+' at the bottom.
    3. Choose 'Add exception Breakpoint...'
    4. Let the default selections there and click 'Done'.

    Rerun the app and see if execution stops at the line which causing this exception.

提交回复
热议问题