~/talk

LLDB Scripting for iOS Developers

Talkat #Pragma Conference 2024 · 2024-10-29..10-30· [developer-experience, ios]
slides:none on file

Shows a working LLDB Python script that reads two consecutive pointers from a Swift closure (function pointer + capture context), uses SBProcess.read_memory to extract 8‑byte values, and registers a summary via type summary add -F so Xcode and LLDB display the context pointer. Demonstrates copying that address into Xcode’s memory graph (Malostack logging) to backtrack closure creation; notes closures are 16 bytes but LLDB may report 8, and the script successfully surfaces the missing context for real debugging.

AI-written summary · about

  1. 0:00Introduction to LLDB
  2. 3:39Why use LLDB
  3. 6:09What is LLDB
  4. 10:23Memory logging in Xcode
  5. 13:16Setting up Python environment
  6. 16:07Writing first LLDB script
  7. 18:38LLDB API basics
  8. 21:08Implementing closure formatter
  9. 23:37Live demo and results
  10. 24:42Resources and summary
  11. 25:30Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.