Re:Instant replay: Debugging C and C++ programs with rr
by roca on Wednesday May 05, 2021 @12:12AM
(#27046107)
Intellitrace doesn't capture the full program history. rr reproduces everything in userspace memory (and registers) at any point in time.
TTD is the closest thing Microsoft has to rr.
Re:Instant replay: Debugging C and C++ programs with rr
by dataflow on Wednesday May 05, 2021 @12:18AM
(#27046143)
Oh interesting, thanks! I'd heard of TTD but hadn't realized it's different from historical debugging at all. Would you have any thoughts on TTD vs. rr?
Re:Instant replay: Debugging C and C++ programs with rr
by roca on Wednesday May 05, 2021 @08:07PM
(#27057542)
TTD uses code instrumentation so typically has a lot higher overhead than rr on single-threaded code. On the other hand, it can handle shared memory and use multicore, so for parallel programs on big machines TTD could be faster.
TTD has some debugging features rr+gdb doesn't have, like some cool query-based debugging features. But it doesn't let you run application functions (e.g. prettyprinters) at debug time like rr does. Pernosco consumes rr recordings and blows TTD away IMHO :-).
[1] https://docs.microsoft.com/en-us/visualstudio/debugger/histo...