Xcode: View Console History After Cleared?
Asked Answered
B

2

10

How can I see the Xcode console history? I accidentally cleared it by running the application again and am wondering if I can get back what was cleared.

Batik answered 14/9, 2011 at 6:59 Comment(0)
B
10

Xcode 11:

In the Navigator, press the "Report navigator" button (the speech bubble), then click on your previous run sessions. You can see all your previous console logs.

enter image description here

Brandy answered 16/9, 2020 at 3:8 Comment(0)
Q
13

Xcode console output is logged in the system log. You can search the system log from the console with 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's being written and filter for YourApp
sudo tail -f /private/var/log/system.log | grep YourApp
Quentinquercetin answered 12/4, 2012 at 14:8 Comment(4)
Tight! Thanks! I started a bounty to award you more points :). But, SO said I have to wait 23 hours to award it to you. :/Batik
Doesnt work at all... I need my prints but nothing is displayed what I printed. Why?Expunge
What YourApp means? the name of my app or name of the catalog?Expunge
Hod do I recover my console prints?Expunge
B
10

Xcode 11:

In the Navigator, press the "Report navigator" button (the speech bubble), then click on your previous run sessions. You can see all your previous console logs.

enter image description here

Brandy answered 16/9, 2020 at 3:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.