Function breakpoint in ocamldebug

I can set a breakpoint in a given module with break @ Nanocaml__Driver 40.

How do I set a breakpoint in function in the same module, though?

AFAIK, one can only set a breakpoint at a function of a module when code is executing in that module already. So, for exanple, if your existing break point is reached, at that time, you can set a breakpoint for any of the other functions in that module using break <function_name>.

That’s the only way I’ve gotten it to work. If there is another way, I’m interested in hearing it too.

I just looked at the documentation. It reads (w.r.t. setting a breakpoint at a function), “This works only when the functional value of the identifier function has been computed and assigned to the identifier.”

So, that might imply that what I said works only for functions at global scope (and that my advice is in other ways crude/inaccurate).