14

The question in the topic: Why no print output in Console using Simulator? Is it disabled or this is a bug?

5
  • 1
    In the debug area, hit the right half-square. show the console Commented Sep 24, 2016 at 12:14
  • 1
    also try View --> Debug Area --> Activate Console Commented Sep 24, 2016 at 12:18
  • 2
    Thank you Nazrul Hasan! Activate Console command helps. Also I customized Sheme: I added environment variable: "OS_ACTIVITY_MODE" with "disable" value. I thought it hides only os notifications. Commented Sep 24, 2016 at 14:02
  • Also, to activate console with keyboard shortcut Shift + Command ⌘ + C - Xcode 8.3.3 Commented Aug 15, 2017 at 15:21
  • Sometimes you have to restart the Xcode even if the console is activated. So quite the Xcode and reopen the project. It worked for me. Commented Apr 3, 2018 at 9:00

3 Answers 3

44

Try with this way

View --> Debug Area --> Activate Console

Sign up to request clarification or add additional context in comments.

2 Comments

That wasn't me, but basically the question is about a different, much more complex problem: stackoverflow.com/questions/19828670/…
bless your soul haha, spent way too long being confused about this.
11

same answer as @Nazmul Hasan, but with an image to help others.

enter image description here

Comments

0

I found that you could not type print("the data you want to print") in normal class with no type.

You need to type this code in general viewController, such as UIViewController or UITableViewController.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.