LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rr

Record and replay program execution for debugging

TLDR

Record program execution
$ rr record [./program]
copy
Replay recording
$ rr replay
copy
List recordings
$ rr ls
copy
Replay specific trace
$ rr replay [trace-directory]
copy
Record with chaos mode
$ rr record --chaos [./program]
copy
Pack trace for sharing
$ rr pack [trace-directory]
copy

SYNOPSIS

rr command [options] [program] [args]

DESCRIPTION

rr is a lightweight recording and deterministic replay tool for debugging on Linux. It records a program's execution — including all system calls, signals, and thread scheduling decisions — so that the exact same execution can be replayed any number of times for debugging, producing identical behavior every run.During replay, rr integrates with GDB to provide a standard debugging interface enhanced with time-travel capabilities. Developers can step backwards through execution, set reverse breakpoints, and navigate to any point in the recorded trace, making it dramatically easier to find the root cause of bugs that are difficult to reproduce.The --chaos flag randomizes thread scheduling during recording to help expose concurrency bugs and race conditions that might not appear under normal scheduling. Recording imposes low overhead, typically running at near-native speed, making it practical for real-world debugging workflows.

PARAMETERS

record

Record execution.
replay
Replay recording.
ls
List traces.
pack
Pack trace.
--chaos
Randomize scheduling.
-n
Number of processes.
-h
Help for command.

INSTALL

sudo apt install rr
copy
sudo dnf install rr
copy
sudo zypper install rr
copy
nix profile install nixpkgs#rr
copy

CAVEATS

Linux x86-64 only. Requires perf_event access. Some syscalls unsupported.

HISTORY

rr was developed by Mozilla for debugging Firefox. It provides record-and-replay debugging for Linux.

SEE ALSO

gdb(1), strace(1), perf(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid