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