Xcode stack trace not appearing in console

后端 未结 2 1916
[愿得一人]
[愿得一人] 2021-01-18 01:59

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 X

2条回答
  •  [愿得一人]
    2021-01-18 02:27

    This 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.

提交回复
热议问题