Re:Debuggers Suck
by xanth on Wednesday November 27, 2019 @12:45AM
(#21645577)
Has anything like RR been developed for the .net Core CLR or Framework?
[ Parent
| on HN ]
WinDbg Preview's Time Travel Debugger can do this: https://docs.microsoft.com/en-us/windows-hardware/drivers/de...
The great advantage of such a debugger is that you can use it to follow data flow: if you see an incorrect value somewhere, you can set a memory breakpoint and then run the program backwards to jump to the point in time where the value was written.
I've only used it with C++ applications so far, but the WinDbg blog claims that it also works when debugging managed code with the SOS debugging extension.
Visual Studio confusingly has the somewhat-similar "Intellitrace", but AFAIK that only records previous states collected for certain events (breakpoints, first-chance-exceptions, ...). It can't rewind the program an arbitrary point like the time-travel debugger can, so it's not useful to follow data flow.
This claims to provide replay debugging for C# and C++, but I haven't used it: https://docs.microsoft.com/en-us/visualstudio/debugger/intel...
Re:Debuggers Suck
by james_s_tayler on Wednesday November 27, 2019 @02:16AM
(#21645944)
I was under the impression the Enterprise version of visual studio includes a debugger that functions in a similar manner. Capture the entire execution and allow it to be replayed and shared with others.
It seems it's only for Azure: https://docs.microsoft.com/en-us/visualstudio/debugger/debug...