I am still working on my web application and I want to try and implement time travel debugging on the front end similar to this elm project here https://github.com/rtfeldman/elm-spa-example (the demo with time travel debugging, directly here http://rtfeldman.github.io/elm-spa-example-with-debug/). The ultimate end goal will be to have the program record all of the actions that the ui fires and give the user the option to look at them or even play them back (hence the time travel). a stretch goal if I can implement all that would be to allow for the user to export and import these logs and have the application run through them as if the user were hitting the buttons or performing the actions themselves.
Ive been looking through the Incr_dom documentation (which is what Im using on the front end) and I noticed that Action has a built in val should_log: t -> bool. I thought to myself im golden becuase it has to be what im looking for but now after fiddling with it for a while im not totally sure its the silver bullet i was looking for. Ive looked through much of the rest of the incr_dom documentation and some of the vdom docs in case and havent found anything that looks like it is going to perform the actions I need.
I was wondering if anyone had done this before or had resources they could point me to to help me progress, I have been reading a lot of blog posts and repo notes about doing this sort of thing in Elm in the hopes of finding some references to ocaml (and while I did find some none really panned out as they all tended to refer to ocamldebug and its time travel features which dont help me … I think …) at this point im not even sure what to google because “time travel debugging ocaml” just leads me to the ocamldebug which I feel is not the exact resource im looking for. there are plenty of elm resources for this so that is reassuring it definitely makes me think that this is possible in ocaml!
Thank you all for your help.