I am new to OCaml which I installed via opam. My compiler is dune. Each time I build my project and run it, it crashes but I get no information from where it crashes in the code.
A friend of mine who is doing the same thing get information about the line where it crashes.
If anyone have an idea it will be incredible !
Best regards,
You could add the following in you main, which turns on the recording of exception backtraces:
let main = record_backtrace true; ...
Alternativelly, you can set the b flag through the OCAMLRUNPARAM variable.
OCAMLRUNPARAM
1.4m articles
1.4m replys
5 comments
56.9k users