I’m happy to announce ppx_minidebug
:
- Which is a syntax extension to instrument type-annotated bindings and functions with logging.
- The extension supports 3 value conversion mechanisms:
pp
andshow
fromderiving.show
, andsexp
fromppx_sexp_conv
. - The
minidebug_runtime
package provides 3 logging backends:Format
based purely on formatters,Flushing
that converts to strings first and flushes output after every entry, andPrintBox
that pretty-prints as trees using theprintbox
package. - I reference a VS Code extension that builds flame graphs for the
Flushing
logger out-of-the-box.