{"repo":"DerekSelander/LLDB","free":true,"listed":false,"github":"https://github.com/DerekSelander/LLDB","clone":"git clone https://github.com/DerekSelander/LLDB.git","description":"A collection of LLDB aliases/regexes and Python scripts to aid in your debugging sessions","language":"Python","stars":1883,"topics":["lldb","ios","debugging","xcode","python"],"license":"GPL-2.0","category":"dev-tools","readme_excerpt":"LLDB A collection of LLDB aliases/regexes and Python scripts to aid in my debugging sessions. These scripts are built only for my own amusement, but some of them might be helpful in your own work. If you want to gain a better understanding of how to build these LLDB scripts, or gain a better understanding of LLDB in general, check out Advanced Apple Debugging and Reverse Engineering . Installation 1. To Install, copy/clone the lldb commands folder to a dir of your choosing. 2. Open up (or create) /.lldbinit 3. Add the following command to your /.lldbinit file: command script import /path/to/lldb commands/dslldb.py Boom! You're good to go! You can test to make sure everything worked successfully by just trying one of the commands in the debugger... i.e. (lldb) help methods I'd recommend cloning. That way when I announce some new script/fix, you can just git pull instead of repeating this whole process. LLDB Scripts For all commands below, you can view the documentation via help {command} . If you want to see what options a command has, type {command} -h . TLDR: search , lookup , and dclass are good GOTOs irregardless if you're a dev or exploring without source. If you like ObjC swizzling, check out sclass . If you like DTrace, check out pmodule and snoopie . search Searchs the heap for all alive instances of a certain class. This class must by dynamic (aka inherit from a NSObject / SwiftObject class). Currently doesn't work with NSString or NSNumber (tagged pointer objects). E","default_branch":null,"files":null,"tree":[],"storefront":"/r/DerekSelander","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DerekSelander/LLDB/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}