iPhone模拟器生成的崩溃日志? [英] Crash logs generated by iPhone Simulator?

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

问题描述

iPhone Simulator是否有生成的崩溃日志?

Are there any crash logs generated by iPhone Simulator?

模拟器崩溃很多,但没有在控制台中留下任何痕迹......崩溃日志会很有用。

the Simulator crashes a lot but not leaving any traces in Console... the crash log will be useful.

推荐答案

控制台将显示模拟器中运行的应用程序的 NSLog()输出。崩溃日志保存到文件中。

The console will show the NSLog() output from an app running in the simulator. The crash logs are saved to file.

我在我的主目录下找到了一些

I have found some in my home directory under

~/Library/Logs/DiagnosticReports/

他们的文件扩展名为 .crash

我还没想到的是,即使调试器抓住了它,如何让它们生成 EXC_BAD_ACCESS signal。

Something I haven't yet figured out is how to get them to generate even if the debugger grabs the EXC_BAD_ACCESS signal.

更新

目前,(OSX 10.11.6),.crash登录〜/ Library / Logs / DiagnosticReports ,当模拟器本身崩溃时 app 崩溃的日志(但模拟器设备仍然运行良好),位于:

Currently, (OSX 10.11.6), the .crash logs in ~/Library/Logs/DiagnosticReports, are when the emulator itself crashes. Logs for an app crashing (but the emulator device is still running fine), are in:


〜/ Library / Logs / CoreSimulator

~/Library/Logs/CoreSimulator

每次崩溃时,都有一个具有唯一ID的子文件夹。按日期排序,以便您最近的崩溃是第一个子文件夹。在其中,首先查看 stderr.log system.log

Per crash, there is a sub-folder with a unique id. Sort by date, so that your recent crash is the first sub-folder. Inside that, start by looking at stderr.log and system.log.

也直接在 CoreSimulator 下,参见 CoreSimulator.log 模拟器。记录

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆