by throwaway808080 · 7y ago · 0 comments
Logs give a timeline of change.
I had this idea of console.snap but never got around to it. The idea is that it would not only capture the stacktrace, but a shallow copy of scopes at every function. You can query the snap to see how a variable changed, or find what set of variables caused something else to change later on.
I feel like this is the holy grail of debugging. Smarter logs that you can reason with and do time travel analysis.
I never got around to doing it, but now working at an analytics company, I see it being very valuable as it saves so much guess work.