Hello Community
I am in the process of understanding the current state of debugging in Rust. For this I am trying to get a feeling of what the general sentiment is in here for:
-
Using
lldbto debug Rust via python formatters (this approach is slow and limits how well you can interact with variables) -
Creating a native
lldbTypeSystemfor Rust to replace the large set of python formatters which is current being used (see link in the bottom) -
Writing
lldbsource code in Rust (Or other subsystems in Rust) -
Current collaboration between the Rust core development team and the LLDB development team.
As somewhat of a side note:
- Writing a debugger from scratch in Rust for example:
A person called “walnut356” wrote an article where he tried to make sense of it would take to make Rust work natively with LLDB:
I believe that there is a lot to gain for both LLDB (and by extension LLVM) and Rust by trying to research, design, and develop a good solution to this issue. I think that there are few Rust developers that are experienced enough in C/C++ to fix these issues themselves (myself included).
Kind regards,
Christian Brunbjerg