
In addition, you can execute your own “normal” Objective-C, Objective-C++, C or Swift code (or even other languages) within SBDebugger’s (or SBCommandReturnObject’s) HandleCommand method.
Python script debug mode how to#
In this chapter, you’ll explore how to inspect your LLDB Python scripts using the Python pdb module, which is used for debugging Python scripts. You need a methodical way to figure out what went wrong in your LLDB script so you don’t pull your hair out. Depending on the error, sometimes these scripts fail silently, or they may blow up with an angry stderr.
Python script debug mode full#
Now you’re about to embark on the frustrating yet exhilarating world of making full LLDB Python scripts.Īs you learn about the classes and methods in the Python lldb module, you’re bound to make false assumptions or simply type incorrect code.

You’ve learned the basics of LLDB’s Python script bridging. SB Examples, Resymbolicating a Stripped ObjC Binary SB Examples, Improved LookupĢ6.2 lldbinit directory structure suggestions Script Bridging with Options & ArgumentsĢ4.5 Passing parameters into the breakpoint callback function Script Bridging Classes & HierarchyĢ3.2 Learning & finding documentation on script bridging classesĢ3.3 Creating the BreakAfterRegex command

Section IV: Custom LLDB Commands Section 4: 8 chapters Show chapters Hide chaptersĢ1.3 Creating your first LLDB Python scriptĢ2.1 Debugging your debugging scripts with pdb Exploring & Method Swizzling Objective-C Frameworksġ7.2 Sidestepping checks in prepareDebuggingOverlayġ8.5 Programmatically finding segments and sections Hooking & Executing Code with dlopen & dlsymġ6.1 The Objective-C runtime vs. Section III: Low Level Section 3: 7 chapters Show chapters Hide chaptersġ4.2 The foundation of attachment, ptraceġ5.2 Statically inspecting an executable’s frameworksġ5.6 Loading frameworks on an actual iOS device Section I: Beginning LLDB Commands Section 1: 10 chapters Show chapters Hide chaptersĥ.2 Swift vs Objective-C debugging contexts
