Stack trace or more info on unhandled exception in Xcode/iPhone

后端 未结 4 1717
慢半拍i
慢半拍i 2020-11-28 19:29

Excuse my ignorance, but something\'s been bugging me about the Xcode debugger when running iPhone applications in the iPhone Simulator.

Sometimes, when I mess somet

4条回答
  •  盖世英雄少女心
    2020-11-28 20:26

    The lack of a stack trace is usually indicative of a problem with LLDB (debugger). I love LLDB, but when it comes to showing stack traces and breaking on the exception rather than main in iOS apps, it's a pain in the ass and has been for a few releases now. No idea why Apple hasn't addressed this yet. To fix it is a two-step process:

    1. Edit your current scheme and under the "Run" tab change the debugger from LLDB to GDB.
    2. Go to https://developer.apple.com/bugreporter/ and report the bug so Apple addresses it.

提交回复
热议问题