← Back to tools

rr

Record and deterministically replay debugging sessions

Development linux C++ MIT

Description

rr is a lightweight tool for recording, replaying, and debugging the execution of applications. It allows you to record a failure once and then debug the recording deterministically as many times as you want, making it invaluable for reproducing intermittent bugs.

When to use this tool

Good fit when
  • When debugging intermittent or hard-to-reproduce bugs
  • When you need deterministic replay of program execution
Avoid when
  • When debugging simple, easily reproducible issues
  • On non-Linux platforms

AI Summary

Record and deterministically replay application execution for debugging

Capabilities

  • + Record program execution including system calls
  • + Replay recordings deterministically
  • + Debug with GDB on recorded sessions
  • + Reproduce intermittent failures reliably

Use When

  • When debugging intermittent or hard-to-reproduce bugs
  • When you need deterministic replay of program execution

Avoid When

  • x When debugging simple, easily reproducible issues
  • x On non-Linux platforms
View AGENTS.md for rr