如何在iPhone设备上的Organizer上显示iPhone模拟器的控制台?

时间:2011-10-20 02:41:35

标签: iphone ios xcode logging ios-simulator

iPhone设备控制台显示在管理器窗口中(shift + command + 2),但不显示iPhone模拟器。我想在Organizer窗口看到控制台,(不是Xcode控制台[shift + command + y])。

如何在iPhone设备上的组织者上显示iPhone模拟器的控制台?

2 个答案:

答案 0 :(得分:5)

您可以使用

从iPhone模拟器中找到消息
  

tail -f /var/log/system.log

OS X机器上的

答案 1 :(得分:1)

来自模拟器的控制台日志将保存到文件中,并且不会显示在管理器窗口中。你通常可以在这里找到它们:

/Users/ME/Library/Logs/DiagnosticReports/SOMELOGFILE.crash

如果没有,请运行此命令(从终端)找到它们:

find / -type f -iname "\*.crash"

或者,运行这两个(如果你有locate):

updatedb
locate "*.crash"