How do I get a stack trace in OCaml?

Thelema picture Thelema · Sep 28, 2008 · Viewed 8.8k times · Source

The Objective Caml language will only produce stack traces if you ask for them just right - what are the requirements for both bytecode and native code?

Answer

Thelema picture Thelema · Sep 28, 2008

Compile with -g and set environment variable OCAMLRUNPARAM=b