logoalt Hacker News

fpoling • yesterday at 1:34 PM • 1 reply • view on HN

With actor systems with no shared memory and explicit state implementing time traveling debug support is rather straightforward and gives you a record of all state transitions not just a call stack. This is vastly more useful.

The drawback is that one can have stack trace in prod but no time-traveling debugging. But then a typical workaround is to log explicitly state transitions. Depending on how it is done it can be sufficiently ergonomic and still gives more information than stack traces.


Replies

timmisiak • yesterday at 5:10 PM

I was actually thinking about doing time-travel debugging as the next article in the series. I worked on the microsoft time travel debugger, and it's almost funny how easy of a problem it becomes when you have no shared state and a narrow kernel interface. But on the flip side, the biggest reason debuggers are ever useful are the exact sort of bugs that aren't likely in a system like this.