
I’ve mentioned a number of useful open source projects for more meaningful logs such as this excellent Xcode plugin for colorizing debug console text.
Here’s a handy NSBlock category from Conrad Kramer called BlockTypeDescription that makes log statements related to a block considerably more descriptive.
An example from the readme:
This produces the following result with BlockTypeDescription:
rather than the default:
You can find BlockTypeDescription on Github here.
A very useful add-on for working with blocks.
- Easier Debugging With NSLog Statements
- Tutorial: How To Work Some Objective-C Magic To Add Blocks Support Into UIMenuItem
- Code Snippet: Log Meaningful Information About (Nearly) Any Type In Objective-C
- Advanced iOS App Logging For Easier Desktop And Even In-App Debugging
- Open Source: Massive Collection Of Objective-C Blocks Extensions
Original article: Open Source Objective-C Category That Makes Block Related Logging Statements More Meaningful
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.