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.
Tests run sequentially
When you rundbgflow 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.
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.
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.