Debugging Rust
So you can debug Rust in the same way as C/C++. If you built your Rust executable in a gcc compatible binary format you can just invoke gdb on it:
Rust comes with a gdb wrapper script called that loads macros which perform syntax highlighting.
If your code is crashing because of a panic!() you can get a backtrace on the console by setting the environment variable.
Find out your target binary format
Or perhaps:
The information will tell you which debugger you can use to debug your code.
If you have the MSVC toolchain (32 or 64-bit) or the LLVM backend will generate a .pdb file and binaries will be compatible with the standard MSVC runtime.
- Choose File | Open | Project/Solution…
- Select the compiled executable
- Click the “Start” button
GDB can be invoked directly from the command line or through a plugin / IDE. From the command line it’s a
TODO
TODO