I would like to evaluate an OCaml program in a step by step manner, in order to check if it satisfies the requirements (and also to know where exactly I suck at writing this program! This is a good way for learning faster).
There is the good old ocamldebug that requires to compile the program with
ocamlc -g, that lets add some breakpoints and examine values. From CLI (or CLI within Emacs, with apparently no more support).
What are the tools for OCaml:
- that don’t require to first compile the program
And how do you proceed to locate your non syntactic errors and non type errors, and to fine-tune your OCaml program?