ocamldebug works great when you can use bytecode.
If you want to debug an application with internal code, there is a patch from Thomas gazagnaire from Mantis, which allows you to step-by-step into the OCaml program using gdb. Parts of this patch should be integrated into the next version of OCaml (3.13 or 4.00).
Currently, however, it is not possible to print OCaml values, but another patch appears, using GADT to determine the general printer function for any type.
Fabrice le fessant
source share