Created
July 1, 2018 10:23
-
-
Save mykhailokrainik/4a3120f4c4538e4531a810b82a3edb2e to your computer and use it in GitHub Desktop.
Debugging Rust program via rr + rustgdb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z $1 ]]; then | |
echo 'Set ./target/debug/<programm_name> as argument' | |
else | |
sudo rr record -n $1 | |
sudo rr replay -d rust-gdb ~/.local/share/rr/latest-trace | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per to presentation https://bitshifter.github.io/rr+rust/#25