Ben Chuanlong Du's Blog

It is never too late to learn.

Debug a Rust Application

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Debugging Rust in VSCode

  1. Install the extension CodeLLDB .

  2. Uncheck "Pause on panic" (checked by default).

Debug Rust Using rust-gdb

Debug Rust Using rust-lldb

Debug Rust Using rr

is a lightweight tool for recording, replaying and debugging execution of applications (trees of processes and threads). Debugging extends gdb with very efficient reverse-execution, which in combination with standard gdb/x86 features like hardware data watchpoints, makes debugging much more fun.

References

Comments