How to enable exception stack trace for OCaml `Toplevel`?

in Toplevel, how to enable stack trace for exceptions?

a simple question, I do not know how to ask in more detail.

+5
source share
1 answer

This wasn’t easy (only code compiled outside of toplevel would support backtraces), but since OCaml 4.03.0 (released in April 2016), toplevel supports backtracks thanks to the contributions of whitequark and Jake Donham.

toplevel OCAMLRUNPARAM=b ocaml, . , , , -g, backtrace, , , .

+8

All Articles