Up

Module Debug

Utilities for printing debug messages.

Signature

val eprint : string -> unit

eprint message prints to stderr message, followed by a newline and flush. This is the same as prerr_endline.

val eprints : string -> 'a -> ('a -> Sexplib.Sexp.t) -> unit

eprints message a sexp_of_a prints to stderr message and a as a sexp, followed by a newline and flush.

val eprint_s : Sexplib.Sexp.t -> unit

eprint_s sexp prints sexp to stderr, followed by a newline and a flush.

val eprintf : ('r, unit, string, unit) Pervasives.format4 -> 'r

eprintf message arg1 ... argn prints to stderr message, with sprintf-style format characters instantiated, followed by a newline and flush.

module Make () : sig .. end
Debug.Make produces a debug function used to wrap a function to display arguments before calling and display results after returning.