How do I debug with NSLog(@“Inside of the iPhone Simulator”)?

后端 未结 6 1810
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 05:09

I\'m used to programming and having log messages be viewable. I know you used to be able to use NSLog() to trace out messages when debugging Cocoa applications.

6条回答
  •  一整个雨季
    2020-12-04 05:36

    You could use NSLogger which brings a lot more to the table than just logging your messages. I use macros to disable logs in release builds, while leaving every single one of them active in debug builds. The log volume is not an issue, as NSLogger offers powerful log filtering options.

提交回复
热议问题