Powerful private methods for debugging in Cycript & LLDB

http://iosre.com/t/powerful-private-methods-for-debugging-in-cycript-lldb/3414

recursiveDescription

I don't think it necessary to introduce this method again. It prints the hierarchy of an UIView object. Here's how we use it in Cycript:

_printHierarchy

Skip UIViews and nextResponders to get ViewControllers directly. Refer to this post78 for details.

In short, it's:

_autolayoutTrace

Simplified recursiveDescription, cuts off lots of descriptions of UIViews. Here's how we use it in Cycript:

_ivarDescription

Prints alnames and values of instance variables of a specified object. Here's how we use it in Cycript:


_methodDescription

Prints all properties, instance methods and class methods of a specified object. Here's how we use it in Cycript:

References:
1. http://swiftiostutorials.com/using-private-undocumented-ios-methods-debugging/44
2. http://iosre.com/t/shortcut-to-find-the-viewcontrollers-class-name-on-the-keywindow/283478


You can edit this post following the above format.


发表评论