Tuareg helps editing OCaml code, to highlight important parts of the code, to run an OCaml REPL, and to run the OCaml debugger within Emacs. See https://github.com/ocaml/tuareg for customization tips.