My Debug Area logs suddenly stopped showing.

Hello :


I am buliding an app on Mac Os Catalina with Xcode 11 and Swift 5.1. The debug logs have been very useful in helping me identify changes I needed to make to move forward step by step, and to solve problems in my code.


Now the debug logs suddenly disappeared and are not showing at all.


I had some problems showing my assistant editor so I don't know if I changed a setting while trying to get my Assistant Editor to display code with the Controller Scene.


Any help in getting my logs to display again will be greately appreciated. (I am new to Mac App Development)

Answered by DTS Engineer in 388916022

If you choose View > Debug Areas > Activate Console, does that help?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

If you choose View > Debug Areas > Activate Console, does that help?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks Eskimo:


The icon, "Hide the Console" was activated.

For me, in Xcode 15.0.1 I can see info messages but not debug ones. I guess for Xcode, that's where the debug ones would be the most useful to me. If it matters for this, I'm trying to use it with code generated by a macro, and the client playground file can't use os.log, so I'm using swift-log. Still, can't see debug level messages or a way to turn them on.

The trouble here is that my first search hit ended up at Quinn. That usually means I'm out of luck. ☺️

OK. Fine. RTFM. You have to set the log level in the logger to something that includes the level you want to show.

var logger = Logger(label: "Client")

logger.logLevel = .trace

logger.info("logger.info")
logger.debug("logger.debug")
My Debug Area logs suddenly stopped showing.
 
 
Q