About 15 years ago I was trying to debug a pesky timing issue and couldn't reproduce it.
I wrote a script to capture and replay network traces from Wireshark (then called Ethereal) that included keeping the timings intact. Caught the bug reliably every time.
I still think that's the best thing I every did.