Hacker News new | ask | show | jobs
by whatsakandr 705 days ago
I've used rr very sucessfully for reverse engineering a large code base using a break on variable change combined with reverse-continue. Took the time to extract critical logic way down.
2 comments

That sounds very interesting; Do you have a write-up on this that you are willing to share?
This is the usual killer feature of something like rr. You debug, look at some variable: `p whatever`. You see that its value is wrong. You want to know where this wrong value came from, so you `watch -l whatever` and `rc`. Bam!
There are some bugs I would never have figured out without this technique. It feels like cheating.
Totally. rr is nothing short of a revolution in debuggin.
It’s not cheating, it’s technique!
May I assume the large codebase was written in a language with (for lack of a better term) dynamic types?
No, you may not.