How do I get proper backtraces when running script with ocaml?
For example I have
let f () = failwith "test" let proc () = f () let () = proc ()
When I run ocaml with
env OCAMLRUNPARAM=b ocaml test.ml I get
Exception: Failure "test". Raised at file "stdlib.ml", line 29, characters 22-33 Called from unknown location Called from file "toplevel/toploop.ml", line 212, characters 17-27
How do I get proper location in my script?