> ## Documentation Index
> Fetch the complete documentation index at: https://desme.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> dbgflow is a graph-first debugger for Rust that turns your program's execution into an interactive, time-travel node graph in the browser.

## 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

> [card] [Quick Start](https://desme.mintlify.site/quickstart.md)
>
> Add dbgflow to a project and open your first session in under 5 minutes

> [card] [Installation](https://desme.mintlify.site/installation.md)
>
> Add dbgflow to your Cargo.toml and install the CLI

> [card] [Macros](https://desme.mintlify.site/macros/trace.md)
>
> Instrument functions and types with `#[trace]`, `#[ui_debug]`, and `#[dbg_test]`

> [card] [CLI](https://desme.mintlify.site/cli/overview.md)
>
> 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](https://crates.io) as three packages:

| Crate | Description |
| - | - |
| [`dbgflow`](https://crates.io/crates/dbgflow) | Main crate — library API and CLI binary |
| [`dbgflow-core`](https://crates.io/crates/dbgflow-core) | Runtime, session model, and embedded UI server |
| [`dbgflow-macros`](https://crates.io/crates/dbgflow-macros) | Procedural macros (`#[trace]`, `#[ui_debug]`, `#[dbg_test]`) |

Most users only need to depend on `dbgflow`, which re-exports everything from the other two crates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.