package ppx_minidebug

  1. Overview
  2. Docs

Module Minidebug_client.ClientSource

Main client interface

Sourcetype t
Sourceval open_db : string -> t

Open database for reading

Sourceval close : t -> unit

Close database connection

Sourceval list_runs : t -> Query.run_info list

List all runs

Sourceval get_latest_run : t -> Query.run_info option

Get the run in the database

Sourceval show_run_summary : t -> int -> unit

Print summary of the run with the given ID

Sourceval show_stats : t -> unit

Print database statistics

Sourceval show_trace : ?show_scope_ids:bool -> ?show_times:bool -> ?max_depth:int option -> ?values_first_mode:bool -> t -> unit

Print full trace tree for a run. When values_first_mode is true (default), result values become headers with location/message as children.

Sourceval show_compact_trace : t -> unit

Print compact trace (function names only)

Sourceval show_roots : ?show_times:bool -> ?with_values:bool -> t -> unit

Print root entries efficiently. Fast for large databases. When with_values is true, includes immediate children values.

Search and print matching entries

Sourceval export_markdown : t -> output_file:string -> unit

Export trace to markdown file