Previously I mentioned the excellent Xcode Injection plugin from John Hollandsworth allowing runtime code injection.
Here’s another great tool from John that comes in the form of a library called Xtrace that lets you see exactly what is happening with a class.
Xtrace allows you to easily log all method calls to a class or a particular class instance and return values sent.
Xtrace is easy to use you simply need to import the library (full details on the Github page) and run it with [classname xtrace] or [instancename xtrace].
There are also a number of other handy features such as the ability to filter out specific methods using a regular expression, and an example project is included.
You can find Xtrace on Github here.
A very nice library for tracking exactly what is happening to a class.
- Tutorial: How To Work Some Objective-C Magic To Add Blocks Support Into UIMenuItem
- Tutorial: How To Perform Objective-C Method Swizzling And Avoid Danger
- Open Source Library For Easy Box2D Collisions In Cocos2D-iPhone Games (Uses Physics Editor)
- Library Allowing You To Time The Performance Of A Definable Section Of Objective-C Code
- Open Source Library Providing Basic Generics Within Objective-C
Original article: Handy Objective-C Library Allowing You To Trace All Method Calls To A Class
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.