Chapters

Hide chapters

Advanced Apple Debugging & Reverse Engineering

Fourth Edition · iOS 16, macOS 13.3 · Swift 5.8, Python 3 · Xcode 14

Section I: Beginning LLDB Commands

Section 1: 10 chapters
Show chapters Hide chapters

Section IV: Custom LLDB Commands

Section 4: 8 chapters
Show chapters Hide chapters

A. Appendix A: LLDB Cheat Sheet
Written by Walter Tyree

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

A cheat sheet for commands and ideas on how to use LLDB.

Getting Help

(lldb) help

List all commands and aliases.

(lldb) help po

Get help documentation for po (expression) command.

(lldb) help break set

Get help documentation for breakpoint set.

(lldb) apropos step-in

Search through help documentation containing step-in.

Finding Code

Look up all code containing UIAlertController that’s compiled or loaded into an executable.

Breakpoints

Creates a breakpoint on all methods named viewDidLoad for both Swift and Objective-C.

Expressions

Prints "hello, debugger" regardless of the debugging context.

Stepping

Return early from code with false.

GDB Formatting

Print value in hexadecimal.

Memory

Read memory at address 0x000000010fff6c40.

Registers and Assembly

Display all registers on the system.

Modules

List all modules loaded into the executable’s process space.

Have a technical question? Want to report a bug? You can ask questions and report bugs to the book authors in our official book forum here.
© 2026 Kodeco Inc.

You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now