LLDB
Purpose
Guide agents through LLDB sessions and map existing GDB knowledge to LLDB. Covers command differences, Apple specifics, Python scripting, and IDE integration.
Triggers
- "I'm on macOS and need to debug a C++ program"
- "How does LLDB differ from GDB?"
- "How do I do [GDB command] in LLDB?"
- "LLDB shows
<unavailable>for variables" - "How do I use LLDB in VS Code?"
- "How do I write an LLDB Python script?"
Workflow
1. Start LLDB
2. GDB → LLDB command map
Source: https://lldb.llvm.org/use/map.html
3. Breakpoints
4. Inspect state
5. Watchpoints
6. Threads
7. macOS / Apple specifics
8. VS Code integration
Install the CodeLLDB extension. .vscode/launch.json:
9. LLDB Python scripting
Load: command script import /path/to/myscript.py
For a full GDB↔LLDB command map, see references/gdb-lldb-map.md [blocked].
Related skills
- Use
skills/debuggers/gdbfor GDB workflows - Use
skills/debuggers/core-dumpsfor core dump analysis - Use
skills/compilers/clangfor building with debug info


