How can I view the history of the Xcode console? I accidentally cleared it by starting the application again, and I wonder if I can return what was cleared.
The output of the Xcode console is logged in the system log. You can search the syslog from the console using grep:
# view last 2000 lines of the system log sudo tail -n2000 /private/var/log/system.log # search system log for YourApp sudo grep YourApp /private/var/log/system.log # watch the system log as it being written and filter for YourApp sudo tail -f /private/var/log/system.log | grep YourApp