Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 842 Bytes

debugging.md

File metadata and controls

19 lines (17 loc) · 842 Bytes
tags
ecosystem

Debugging

  • OCaml comes with a built-in debugger for the bytecode compiler. You invoke it with the ocamldebug command. See the manual for more details.
  • The easiest way to debug OCaml code, other than inserting print statements, is choosing bytecode as your compilation target, and using the OCaml debugger.
  • Additionally, one can use gdb to debug native code.
  • ocamlearlybird: Debug Adapter Protocol implementation for OCaml. Allows integrating the OCaml debugger with an IDE.
  • ocaml-dap: Generic Debug Adapter Protocol implementation in OCaml.