iOS模拟器崩溃日志

iOS模拟器崩溃日志

本文介绍了iOS模拟器崩溃日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用iOS模拟器并且应用程序崩溃时,我找不到崩溃日志。我一直在看着互联网,不知道如何启用它们。我知道我可以运行在一个实际的设备上,并以这种方式获得崩溃日志,但是我现在想修复的错误现在往往会导致程序挂起在调试器中。然后没有qlaunchsuccess数据包发送,这是一个巨大的痛苦,特别是当我必须一遍又一遍地运行程序。我唯一可以找到的建议是使用CrashReporterPrefs,但是搜索我的硬盘驱动器没有显示任何甚至接近这个命名的东西。我还挖掘了XCode的软件包内容和iOS模拟器的文件。 iOS模拟器有一个崩溃日志文件夹,但它是空的。任何人知道如何使这项工作?谢谢。

When I use the iOS simulator and the app crashes, I can't find the crash logs. I've been looking all over the internets and can't figure out how to enable them. I know I can just run on an actual device and get the crash logs that way, but the bug I'm trying to fix right now tends to cause the program to be hung in the debugger. Then there's no qlaunchsuccess packet sending and it's a huge pain, especially when I have to run the program over and over. The only advice I've been able to find says the use CrashReporterPrefs, but a search of my hard drive reveals nothing named something even close to this. I've also dug into the package contents of XCode and the files of the iOS simulator. The iOS simulator has a crash logs folder, but it is empty. Anyone know how to get this working? Thanks.

推荐答案

崩溃日志只是调试器已经给您的输出。当您在连接到调试器的模拟器中运行,并且您遇到崩溃时,您可以在调试导航器中查看返回跟踪信息(默认键绑定为cmd + 5)

A Crash log is just an output of what the debugger already gives you. When you are running in the simulator attached to the debugger, and you hit the crash, you can view the back trace information in the debug navigator (default key binding is cmd+5)

这篇关于iOS模拟器崩溃日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 15:27