在设备上运行时,NSLog信息会发生什么? [英] what happens to NSLog info when running on a device?

查看:94
本文介绍了在设备上运行时,NSLog信息会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设备上运行时,NSLog信息会发生什么?文字在哪里?它得救了吗?因此,在设备上运行时,它是一个很大的开销,还是有效地将其发送到null?

what happens to NSLog info when running on a device? Where does the text go? Does it get saved? Is it therefore a big overhead when running on a device, or does it effectively get sent to null?

推荐答案

即使设备未连接到您的Mac,您的设备也会继续记录。要查看日志,您需要打开Xcode,单击窗口菜单项,然后单击管理器。然后选择您的设备,然后选择设备日志选项卡。由于某种原因(至少对我来说)查看日志看起来很不稳定,所以如果没有显示任何内容,您可能需要完全退出Xcode并重新启动它。

Your device will continue logging even when it's not connected to your mac. To see the logs, you need to open Xcode, click the 'Window' menu item, and then 'Organizer'. Then select your device and then select the 'Device Logs' tab. For some reason (for me at least) viewing the logs seems flaky, so if nothing shows up, you may need to completely quit Xcode and restart it.

这篇关于在设备上运行时,NSLog信息会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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