There is an OCaml debugger function that you may not suspect of, which is usually not detected during stateful programming and is called time travel. See Section 16.4.4 . Basically, since all the information from step to step is stored on the stack, saving the changes associated with each step saved during processing, you can go through the changes in time to see the values ββduring this step. Think of it as starting a program after registering all the values ββat each step in the data warehouse, and then indexing in this data warehouse based on the step number to see the values ββat this stage.
source share