Contents Menu Expand Light mode Dark mode Auto light/dark mode
🐛 LLDB
🐛 LLDB

Using LLDB

  • Tutorial
  • GDB to LLDB command map
  • Frame and Thread Format
  • Variable Formatting
  • Symbolication
  • Symbols on macOS
  • Remote Debugging
  • Tracing with Intel Processor Trace
  • On Demand Symbols
  • Using LLDB On AArch64 Linux
  • JSON Symbol File Format
  • Troubleshooting
  • Links
  • Man Page

Scripting LLDB

  • Python Scripting
  • Python Reference
  • Python API
    • SBBreakpoint_EventIsBreakpointEvent
    • SBBreakpoint_GetBreakpointEventTypeFromEvent
    • SBBreakpoint_GetBreakpointFromEvent
    • SBBreakpoint_GetBreakpointLocationAtIndexFromEvent
    • SBBreakpoint_GetNumBreakpointLocationsFromEvent
    • SBCommandInterpreter_EventIsCommandInterpreterEvent
    • SBCommandInterpreter_GetArgumentDescriptionAsCString
    • SBCommandInterpreter_GetArgumentTypeAsCString
    • SBCommandInterpreter_GetBroadcasterClass
    • SBCommunication_GetBroadcasterClass
    • SBData_CreateDataFromCString
    • SBData_CreateDataFromDoubleArray
    • SBData_CreateDataFromSInt32Array
    • SBData_CreateDataFromSInt64Array
    • SBData_CreateDataFromUInt32Array
    • SBData_CreateDataFromUInt64Array
    • SBDebugger_Create
    • SBDebugger_Destroy
    • SBDebugger_FindDebuggerWithID
    • SBDebugger_GetBroadcasterClass
    • SBDebugger_GetBuildConfiguration
    • SBDebugger_GetDefaultArchitecture
    • SBDebugger_GetDiagnosticFromEvent
    • SBDebugger_GetInternalVariableValue
    • SBDebugger_GetProgressDataFromEvent
    • SBDebugger_GetProgressFromEvent
    • SBDebugger_GetVersionString
    • SBDebugger_Initialize
    • SBDebugger_InitializeWithErrorHandling
    • SBDebugger_MemoryPressureDetected
    • SBDebugger_PrintDiagnosticsOnError
    • SBDebugger_PrintStackTraceOnError
    • SBDebugger_SetDefaultArchitecture
    • SBDebugger_SetInternalVariable
    • SBDebugger_StateAsCString
    • SBDebugger_StateIsRunningState
    • SBDebugger_StateIsStoppedState
    • SBDebugger_SupportsLanguage
    • SBDebugger_Terminate
    • SBEvent_GetCStringFromEvent
    • SBFileSpec_ResolvePath
    • SBFile_MakeBorrowed
    • SBFile_MakeBorrowedForcingIOMethods
    • SBFile_MakeForcingIOMethods
    • SBHostOS_GetLLDBPath
    • SBHostOS_GetLLDBPythonPath
    • SBHostOS_GetProgramFileSpec
    • SBHostOS_GetUserHomeDirectory
    • SBHostOS_ThreadCancel
    • SBHostOS_ThreadCreate
    • SBHostOS_ThreadCreated
    • SBHostOS_ThreadDetach
    • SBHostOS_ThreadJoin
    • SBLanguageRuntime_GetCatchKeywordForLanguage
    • SBLanguageRuntime_GetLanguageTypeFromString
    • SBLanguageRuntime_GetNameForLanguageType
    • SBLanguageRuntime_GetThrowKeywordForLanguage
    • SBLanguageRuntime_LanguageIsCFamily
    • SBLanguageRuntime_LanguageIsCPlusPlus
    • SBLanguageRuntime_LanguageIsObjC
    • SBLanguageRuntime_SupportsExceptionBreakpointsOnCatch
    • SBLanguageRuntime_SupportsExceptionBreakpointsOnThrow
    • SBModuleSpecList_GetModuleSpecifications
    • SBModule_GarbageCollectAllocatedModules
    • SBModule_GetNumberAllocatedModules
    • SBPlatform_GetHostPlatform
    • SBProcess_EventIsProcessEvent
    • SBProcess_EventIsStructuredDataEvent
    • SBProcess_GetBroadcasterClass
    • SBProcess_GetBroadcasterClassName
    • SBProcess_GetInterruptedFromEvent
    • SBProcess_GetNumRestartedReasonsFromEvent
    • SBProcess_GetProcessFromEvent
    • SBProcess_GetRestartedFromEvent
    • SBProcess_GetRestartedReasonAtIndexFromEvent
    • SBProcess_GetStateFromEvent
    • SBProcess_GetStructuredDataFromEvent
    • SBReproducer_Capture
    • SBReproducer_PassiveReplay
    • SBReproducer_SetAutoGenerate
    • SBReproducer_SetWorkingDirectory
    • SBTarget_EventIsTargetEvent
    • SBTarget_GetBroadcasterClassName
    • SBTarget_GetModuleAtIndexFromEvent
    • SBTarget_GetNumModulesFromEvent
    • SBTarget_GetTargetFromEvent
    • SBThread_EventIsThreadEvent
    • SBThread_GetBroadcasterClassName
    • SBThread_GetStackFrameFromEvent
    • SBThread_GetThreadFromEvent
    • SBTrace_LoadTraceFromFile
    • SBTypeSummary_CreateWithFunctionName
    • SBTypeSummary_CreateWithScriptCode
    • SBTypeSummary_CreateWithSummaryString
    • SBTypeSynthetic_CreateWithClassName
    • SBTypeSynthetic_CreateWithScriptCode
    • SBWatchpoint_EventIsWatchpointEvent
    • SBWatchpoint_GetWatchpointEventTypeFromEvent
    • SBWatchpoint_GetWatchpointFromEvent
    • SBAddress
    • SBAddressRange
    • SBAddressRangeList
    • SBAttachInfo
    • SBBlock
    • SBBreakpoint
    • SBBreakpointList
    • SBBreakpointLocation
    • SBBreakpointName
    • SBBroadcaster
    • SBCommandInterpreter
    • SBCommandInterpreterRunOptions
    • SBCommandReturnObject
    • SBCommunication
    • SBCompileUnit
    • SBData
    • SBDebugger
    • SBDeclaration
    • SBEnvironment
    • SBError
    • SBEvent
    • SBExecutionContext
    • SBExpressionOptions
    • SBFile
    • SBFileSpec
    • SBFileSpecList
    • SBFormat
    • SBFrame
    • SBFunction
    • SBHostOS
    • SBInstruction
    • SBInstructionList
    • SBLanguageRuntime
    • SBLaunchInfo
    • SBLineEntry
    • SBListener
    • SBMemoryRegionInfo
    • SBMemoryRegionInfoList
    • SBModule
    • SBModuleSpec
    • SBModuleSpecList
    • SBMutex
    • SBPlatform
    • SBPlatformConnectOptions
    • SBPlatformShellCommand
    • SBProcess
    • SBProcessInfo
    • SBProcessInfoList
    • SBProgress
    • SBQueue
    • SBQueueItem
    • SBReproducer
    • SBSaveCoreOptions
    • SBScriptObject
    • SBSection
    • SBSourceManager
    • SBStatisticsOptions
    • SBStream
    • SBStringList
    • SBStructuredData
    • SBSymbol
    • SBSymbolContext
    • SBSymbolContextList
    • SBSyntheticValueProvider
    • SBTarget
    • SBThread
    • SBThreadCollection
    • SBThreadPlan
    • SBTrace
    • SBTraceCursor
    • SBType
    • SBTypeCategory
    • SBTypeEnumMember
    • SBTypeEnumMemberList
    • SBTypeFilter
    • SBTypeFormat
    • SBTypeList
    • SBTypeMember
    • SBTypeMemberFunction
    • SBTypeNameSpecifier
    • SBTypeStaticField
    • SBTypeSummary
    • SBTypeSummaryOptions
    • SBTypeSynthetic
    • SBUnixSignals
    • SBValue
    • SBValueList
    • SBVariablesOptions
    • SBWatchpoint
    • SBWatchpointOptions
    • value
    • value_iter
  • Python Extensions
    • OperatingSystem
    • PassthroughScriptedProcess
    • PassthroughScriptedThread
    • ScriptedProcess
    • ScriptedThread
    • ScriptedPlatform
    • ScriptedThreadPlan

Developing LLDB

  • Overview
  • Contributing
  • Building
  • Testing
  • Testing LLDB using QEMU
  • Debugging
  • Fuzzing
  • Scripting Bridge API
  • Data Formatters
  • Formatter Bytecode
  • DWARF Extensions
  • GDB Remote Protocol Extensions
  • LLDB Platform Packets
  • Caveats
  • Open Projects
  • Contributing to LLDB-DAP
  • Adding Programming Language Support
  • Public C++ API
  • Private C++ API

External Links

  • Source Code
  • Releases
  • Join the Discord
  • Discord Channel
  • Discussion Forums
  • Developer Policy
  • Bug Reports
  • Code Reviews
Back to top
Edit this page

Links#

This page contains links to external resources on how to use LLDB. Being listed on this page is not an endorsement.

Blog Posts#

Dancing in the Debugger — A Waltz with LLDB (2014)#

A high level overview of LLDB with a focus on debugging Objective-C code.

Videos#

Run, Break, Inspect: Explore effective debugging in LLDB (2024)#

Learn how to use LLDB to explore and debug codebases. We’ll show you how to make the most of crashlogs and backtraces, and how to supercharge breakpoints with actions and complex stop conditions. We’ll also explore how the “p” command and the latest features can enhance your debugging experience.

LLDB: Beyond “po” (2019)#

LLDB is a powerful tool for exploring and debugging your app at runtime. Discover the various ways to display values in your app, how to format custom data types, and how to extend LLDB using your own Python 3 scripts.

Advanced Debugging with Xcode and LLDB (2018)#

Discover advanced techniques, and tips and tricks for enhancing your Xcode debugging workflows. Learn how to take advantage of LLDB and custom breakpoints for more powerful debugging. Get the most out of Xcode’s view debugging tools to solve UI issues in your app more efficiently.

Books#

Advanced Apple Debugging & Reverse Engineering (2018)#

A book about using LLDB on Apple platforms.

Extensions#

facebook/chisel#

Chisel is a collection of LLDB commands to assist in the debugging of iOS apps.

DerekSelander/LLDB#

A collection of LLDB aliases/regexes and Python scripts.

Next
lldb – The Debugger
Previous
Troubleshooting
Copyright © 2007-2025, The LLDB Team
Made with Sphinx and @pradyunsg's Furo
Last updated on Jun 08, 2025
On this page
  • Links
    • Blog Posts
      • Dancing in the Debugger — A Waltz with LLDB (2014)
    • Videos
      • Run, Break, Inspect: Explore effective debugging in LLDB (2024)
      • LLDB: Beyond “po” (2019)
      • Advanced Debugging with Xcode and LLDB (2018)
    • Books
      • Advanced Apple Debugging & Reverse Engineering (2018)
    • Extensions
      • facebook/chisel
      • DerekSelander/LLDB