CCParse.Debug_
Debugging utils. EXPERIMENTAL
val trace_fail : string -> 'a t -> 'a t
trace_fail name p behaves like p, but prints the error message of p on stderr whenever p fails.
trace_fail name p
p
used as a prefix of all trace messages.
val trace_success : string -> print:( 'a -> string ) -> 'a t -> 'a t
trace_success name ~print p behaves like p, but prints successful runs of p using print.
trace_success name ~print p
print
val trace_success_or_fail : string -> print:( 'a -> string ) -> 'a t -> 'a t
Trace both error or success