3 ms·
The JVM has a few such reversible/omniscient/recording debuggers. A couple of open-source ones -- http://www.lambdacs.com/debugger/ http://www.lambdacs.com/deb
by pron 12y ago
The JVM has a few such reversible/omniscient/recording debuggers. A couple of open-source ones -- http://www.lambdacs.com/debugger/ http://www.lambdacs.com/debugger/, http://pleiad.dcc.uchile.cl/tod/download.html http://pleiad.dcc.uchile.cl/tod/download.html -- and a couple of commercial ones -- http://chrononsystems.com/ http://chrononsystems.com/, https://www.takipi.com/ https://www.takipi.com/ -- the last one is designed to impose very low overhead and run constantly in production.
I've used the first (the Omniscient Debugger) quite a few times. It has a query language that allows you to query for events throughout the duration of the program (e.g. 'x is assigned a value > 1 while y < 10'). Unfortunately, it can only record a few seconds of the program (it uses a cyclical in-memory buffer). The other debuggers supposedly record to disk and can record longer durations.
- lemming 12y agoTakipi is actually a little different, since it looks like it just catches errors and records the whole local stack state at the time of the error. Useful, but it's not a full back-in-time debugger. I'm actually interested in adding something like this to Cursive for Clojure code - I'd be interested to see whether immutability results in smaller trace captures. I suspect Clojure would make up for that with much deeper function call stacks. Datomic could be a nice interface for querying the events, too.
- seanmcdirmid 12y agoImmutability would probably make the traces larger since it would be much harder to do delta compression (what has changed since the last check point...uhm...nothing and everything!).
- lemming 12y agoI'm not sure how many of these systems actually use checkpoints - I believe that ODB just records a stream of events. I'm not sure how easy it would be to store events that take advantage of the structural sharing of Clojure's data structures - probably quite tricky.
- seanmcdirmid 12y agoThe one in this post does, it seems.