I have a simple ocamlbuild project which uses Batteries, including syntax extensions.
_tags
:
<*>: pkg_batteries,pkg_threads,pkg_batteries.syntax,syntax_camlp4o
something.ml
:
open Batteries
…
let () = …
It is built for debugging with:
$ ocamlbuild something.d.byte
$ ocamldebug something.d.byte
Attempting to use the print
command in ocamldebug
, however, gives the following error:
(ocd) print x
Cannot find module Batteries.
This only seems to occur when debugging in a scope where Batteries
is open
ed.
What is the cause of this error? How is it possible to work around?
ocamlfind
for its ability to invokeocamldebug
and came up short. I figured there was something along these lines. Thanks. Will confirm, and accept once I have. – Lancer