Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REPL for ocamldebug?

Tags:

ocaml

One of the things that I miss from GHC (Haskell) when using OCaml is that there is no unified debugger/REPL. The debugger and the REPL are completely separate, which is crazy! You can't think of a random function call and execute it in the running process, like you can in ghci.

Any tips, workarounds for this?

like image 847
Robin Green Avatar asked Aug 25 '11 11:08

Robin Green


1 Answers

There is a REPL for Ocaml which is not debuggable, it is the ocaml command.

You might also use ocamldebug on ocaml, but I'm not sure it would help you.

The ocamldebug debugger is mostly used (on your application compiled with ocamlc) as you would use gdb for C.

like image 107
Basile Starynkevitch Avatar answered Nov 11 '22 16:11

Basile Starynkevitch