#lldb #debugger

sys lldb-sys

Raw bindings to the LLDB C++ API. LLDB is the debugger that is part of the LLVM project and is the default system debugger on Mac OS X. Building and using this is currently slightly tricky, so be sure to see the README.md in the repository.

30 releases

0.0.30 Aug 11, 2023
0.0.29 Sep 15, 2022
0.0.28 Aug 27, 2022
0.0.27 Oct 4, 2021
0.0.10 Jul 19, 2016

#294 in Debugging

Download history 17/week @ 2023-07-30 48/week @ 2023-08-06 42/week @ 2023-08-13 11/week @ 2023-08-20 36/week @ 2023-08-27 70/week @ 2023-09-03 45/week @ 2023-09-10 49/week @ 2023-09-17 48/week @ 2023-09-24 39/week @ 2023-10-01 46/week @ 2023-10-08 44/week @ 2023-10-15 44/week @ 2023-10-22 73/week @ 2023-10-29 17/week @ 2023-11-05 12/week @ 2023-11-12

152 downloads per month
Used in lldb


14K SLoC

C++ 9K SLoC // 0.1% comments Rust 5K SLoC // 0.0% comments Shell 3 SLoC



Dual licensed under the MIT and Apache 2 licenses. The C bindings for LLDB are licensed under the same license as LLVM.


This crate works with Cargo and is on crates.io. Add it to your Cargo.toml like so:

lldb-sys = "0.0.30"


Install the lldb and liblldb-dev packages for your platform so that you have both LLDB itself installed as well as the headers and other support files required.


Install llvm via homebrew:

brew install llvm

Then, tell this crate how to find llvm-config:

export LLVM_CONFIG="`brew --prefix llvm`/bin/llvm-config"


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Binding Re-generation

If something happens where the Rust bindings need to be re-generated, they were generated from this set of files with bindgen. We have a script to automate some of the processing that is needed:


After running that, you will want to selectively merge the changes with what was previously there as the output of this process is hand-edited to add usage of libc as well as doc comments in critical places.