OCamlコードのデバッグ
#OCaml
Printexc.get_callstack 5 |> Printexc.raw_backtrace_to_stringでスタックトレースを出力できる
https://stackoverflow.com/questions/11921779/printing-current-call-stack-in-ocaml
https://ocaml.org/manual/5.2/api/Printexc.html#1_Currentcallstack
ocamlc -gでコンパイルし、環境変数にOCAMLRUNPARAM=bを設定して実行する必要がある
Duneの場合は(flags (:standard -g))と設定すれば良い
https://dune.readthedocs.io/en/latest/concepts/ocaml-flags.html