OCAMLDEBUG(1) | General Commands Manual | OCAMLDEBUG(1) |
ocamldebug - the OCaml source-level replay debugger.
ocamldebug [ options ] program [ arguments ]
ocamldebug is the OCaml source-level replay debugger.
Before the debugger can be used, the program must be compiled and linked with the -g option: all .cmo and .cma files that are part of the program should have been created with ocamlc -g, and they must be linked together with ocamlc -g.
Compiling with -g entails no penalty on the running time of programs: object files and bytecode executable files are bigger and take longer to produce, but the executable files run at exactly the same speed as if they had been compiled without -g.
A summary of options are included below. For a complete description, see the html documentation in the ocaml-doc package.
When ocamldebug(1) is invoked, it will read commands from an initialization file before giving control to the user. The default file is .ocamldebug in the current directory if it exists, otherwise .ocamldebug in the user's home directory.
Note that you can also use the source file command to read commands from a file.
ocamlc(1)
The OCaml user's manual, chapter "The debugger".
This manual page was written by Sven LUTHER <luther@debian.org>, for the Debian GNU/Linux system (but may be used by others).