News for hackers. Stuff that matters.
Re:Things you can do with a debugger but not with print debu... by AndyKelley on Wednesday September 10, 2025 @07:02PM (#45205294)
Combined with time travel it's mind-blowing.

Stumble upon some corrupted memory? Just put a watch point on it, and run the program backwards. Two weeks just turned into two minutes.

Re:Things you can do with a debugger but not with print debu... by mwcz on Wednesday September 10, 2025 @07:14PM (#45205436)
What time traveling debugger(s) do you recommend? I'm a regular GDB user and keep meaning to try rr.
Re:Things you can do with a debugger but not with print debu... by AndyKelley on Wednesday September 10, 2025 @10:17PM (#45206945)
Since you're already a GDB user, rr will probably feel comfortably familiar.

https://rr-project.org/ already has enough example usage to get you going on the home page right there.

Re:Things you can do with a debugger but not with print debu... by adgjlsfhk1 on Thursday September 11, 2025 @12:24AM (#45207761)
rr is excellent. the only problem is it doesn't work for Windows
Re:Things you can do with a debugger but not with print debu... by delta_p_delta_x on Thursday September 11, 2025 @07:06AM (#45210140)
It's a little odd to use GDB on Windows. Have you considered either the Visual Studio debugger, or WinDbg?

WinDbg has time travel debugging, and is arguably 'more excellent': https://learn.microsoft.com/en-gb/windows-hardware/drivers/d...