Get the latest tech news
rr – record and replay debugger for C/C++
Start by using rr to record your application: $ rr record /your/application --args ... FAIL: oh no! The entire execution, including the failure, was saved to disk.
rr features: Low overhead compared to other similar tools, especially on mostly-single-threaded workloads Supports recording and replay of all kinds of applications: Firefox, Chrome, QEMU, LibreOffice, Go programs, ... Record, replay and debug multiple-process workloads, including entire containers Works with gdb scripting and IDE integration Durable, compact traces that can be ported between machines Chaos mode to make intermittent bugs more reproducible With normal debuggers, information you learn during the debugging session (e.g. the addresses of objects of interest, and the ordering of important events) often becomes obsolete when you have to rerun the testcase. So we hoped that if we built a low-overhead record-and-replay system that works well on the applications we care about (Firefox), we could build a really usable backend for gdb's reverse execution commands.
Or read this on Hacker News