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

Debugging

In this chapter, we'll cover debugging using external debuggers. Since Rust at runtime is close enough to how C programs work at runtime, we can leverage the debuggers used in those circles: GDB and LLDB. This will be a very practice-oriented chapter, where we walk through some of the basic debugging commands and workflows.

We'll also cover editor integration via Visual Studio Code using GDB.

The following topics will be covered in this chapter:

  • Introduction to debugging
  • GDB basics and practice
  • GDB with threads
  • LLDB basics
  • GDB integration to Visual Studio Code

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