Trevor
Trevor

Reputation: 2457

swift print not printing to console

For some reason print is not printing anything to the console. I ran the debugger and it's definitely being called.

Do I need to set some kind of setting? I've got "All Output" selected

override func viewDidLoad() {
    super.viewDidLoad()
    print("viewDidLoad")
}

This is the only thing in my console

enter image description here

Upvotes: 0

Views: 4122

Answers (1)

Trevor
Trevor

Reputation: 2457

Found the issue

deep in the project, hidden among lines of code...I found!

public func debugPrint(_ items: Any..., separator: String = " ", terminator: String = "\n") {}
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {}

Actually, it was at the top of AppDelegate...oops

Upvotes: 4

Related Questions