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

# Limitations

> Known limitations and constraints to be aware of when using dbgflow.

This page documents the current limitations of dbgflow. Understanding these constraints will help you avoid unexpected behavior and plan your instrumentation accordingly.

## Async tests are not supported

`#[dbg_test]` does not support async test functions. If you annotate an async function with `#[dbg_test]`, it will not compile or will not be instrumented correctly.

> [!WARNING]
>
> Use `#[dbg_test]` only on synchronous test functions. For async tests, use the standard `#[tokio::test]` or equivalent — they will not be captured by dbgflow.

## Tests run sequentially

When you run `dbgflow test`, dbgflow sets `RUST_TEST_THREADS=1` for the duration of the test run. This ensures that event sequences are captured in a stable, deterministic order across all tests.

As a result, your full test suite takes longer than a normal `cargo test` run with parallelism enabled.

> [!NOTE]
>
> This setting only applies within a `dbgflow test` invocation. Your regular `cargo test` runs are unaffected.

## Value snapshots use `Debug` formatting

All captured value previews — including function arguments, return values, and mid-execution snapshots — are rendered using Rust's `Debug` formatter (`{:?}`). dbgflow does not produce structured diffs or field-level change tracking.

This means:

* You see the same output you would get from `println!("{:?}", value)`.
* Large or deeply nested types produce long, hard-to-read strings.
* There is no diff between a value before and after a mutation.

> [!NOTE]
>
> If you need more readable output, implement a custom `Debug` for your types or use the `{:#?}` pretty-print format in your own instrumentation.

## Argument previews require `Debug`

For dbgflow to capture a preview of a function argument or return value, the type must implement the `Debug` trait. If a type does not implement `Debug`, dbgflow cannot snapshot it and will omit or elide the preview for that value.

> [!WARNING]
>
> If you see missing or empty `values` in your session for a function you instrumented, check whether all argument and return types implement `Debug`.

## No live streaming

The dbgflow UI is replay-oriented. It reads a completed session file and lets you step through the recorded execution. There is no support for live streaming of events while a program is running.

You must complete a capture run before you can inspect results in the UI.


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