在控制台中使用的有用 Xcode DEBUG 命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45194311/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Useful Xcode DEBUG commands to use in console
提问by Ivan Cantarino
I've been wondering but haven't found anywhere an useful list of commands that are useful in Xcode.
我一直在想,但在 Xcode 中没有找到有用的命令列表。
One I know, and I use a lot is Backtrace which the input command is bt
, after you encounter an app crash after uncaught exceptions it sometimes gives an int where the problem could be.
我知道并且我经常使用的是 Backtrace,它的输入命令是bt
,在遇到未捕获的异常后应用程序崩溃后,它有时会在问题可能出现的地方给出一个 int。
Can you share more useful commands that become handy and could let us interact with the debugger and the app itself?
你能分享更多有用的命令,这些命令变得方便并且可以让我们与调试器和应用程序本身进行交互吗?
Thank you
谢谢
采纳答案by Bisca
You can find it in Apple documentation: Debugging with Xcode
您可以在 Apple 文档中找到它:Debugging with Xcode
或检查这个:https: //developer.apple.com/library/content/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide/document/lldb-command-examples.html