Skip to main content

What is dbgflow?

dbgflow lets you instrument Rust code with a few macros and instantly see how your program flows — which functions call which, what data looks like at each step, and exactly where tests fail. Instead of littering your code with println! or squinting at a text-based stack trace, you get a live browser UI that shows:
  • Function nodes linked by call edges in a navigable graph
  • Data nodes that capture your struct/enum state at any point in time
  • Test nodes that pin-point exactly which traced function caused a failure
  • Time-travel playback to step forward and backward through every recorded event

Quick Start

Add dbgflow to a project and open your first session in under 5 minutes

Installation

Add dbgflow to your Cargo.toml and install the CLI

Macros

Instrument functions and types with #[trace], #[ui_debug], and #[dbg_test]

CLI

Run demos, serve sessions, and capture test runs from the command line

How it works

1

Instrument your code

Add #[trace] to functions and #[ui_debug] to types you want to observe.
2

Run your tests or program

Use dbgflow test or the programmatic API to capture an execution session.
3

Open the browser UI

Pass --serve to any command or run dbgflow serve <session.json> to open the interactive graph.
4

Explore and replay

Click nodes, scrub the timeline, inspect values, and trace failures back to their source.

Crates

dbgflow is published on crates.io as three packages: Most users only need to depend on dbgflow, which re-exports everything from the other two crates.