O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

LLDB - quick overview

LLDB comes from the LLVM project, which Rust itself is written on. Let's go through the same steps as before, but this time with LLDB. Rust comes with a wrapper for LLDB as well, unsurprisingly enough called rust-lldb. Here's how running a program through it looks:

LLDB is similar to GDB in many ways, but arguably quite a bit more modern and neat in its UI. For example, here's the help command for run:

Listing the file is close enough to the GDB, syntax, but setting the breakpoint has a slightly different syntax:

The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required