Expand description
Public facade for the dbgflow graph debugger.
Most users should depend on this crate instead of wiring dbgflow-core and
dbgflow-macros manually.
Modules§
- demo
- Demo pipeline and helpers used by the built-in CLI demo.
- prelude
- Common imports for user code.
- runtime
- Re-exported runtime and session types from
dbgflow-core. Runtime helpers used by generated macros and advanced callers.
Structs§
- Edge
- Re-exported runtime and session types from
dbgflow-core. Directed edge between two graph nodes. - Event
- Re-exported runtime and session types from
dbgflow-core. Single recorded execution event. - Function
Meta - Re-exported runtime and session types from
dbgflow-core. Static metadata generated for traced functions. - Node
- Re-exported runtime and session types from
dbgflow-core. Graph node metadata persisted in a debugging session. - Session
- Re-exported runtime and session types from
dbgflow-core. Complete replayable debugging session. - Type
Meta - Re-exported runtime and session types from
dbgflow-core. Static metadata generated for#[ui_debug]types. - Value
Slot - Re-exported runtime and session types from
dbgflow-core. Named value preview attached to an event.
Enums§
- Edge
Kind - Re-exported runtime and session types from
dbgflow-core. Supported edge types in the session graph. - Event
Kind - Re-exported runtime and session types from
dbgflow-core. Supported event kinds emitted by the runtime. - Node
Kind - Re-exported runtime and session types from
dbgflow-core. Supported node types in the session graph.
Traits§
- UiDebug
Value - Re-exported runtime and session types from
dbgflow-core. Trait implemented for values that should appear as UI data nodes.
Functions§
- capture
- Captures a specific block of code into a fresh in-memory session.
- capture_
and_ serve - Captures a specific block of code and immediately serves its session in the browser UI.
- capture_
session - Re-exported runtime and session types from
dbgflow-core. Runs a closure inside a fresh in-memory capture session. - capture_
session_ and_ serve - Re-exported runtime and session types from
dbgflow-core. Runs a closure, then serves the captured session over the local UI server. - capture_
session_ to_ path - Re-exported runtime and session types from
dbgflow-core. Runs a closure, then writes the captured session to a JSON file. - capture_
to_ file - Captures a specific block of code and writes its session to a JSON file.
- current_
session - Re-exported runtime and session types from
dbgflow-core. Returns a snapshot of the current in-memory session. - init_
session - Starts a fresh in-memory debugging session with the provided title.
- load_
saved_ session - Reads a saved session file, or aggregates all JSON sessions in a directory.
- panic_
message - Extracts a human-readable panic message from a panic payload.
- persist_
session_ from_ env - Persists the current session if the
DBG_SESSION_DIRenvironment variable is set. - read_
session_ json - Re-exported runtime and session types from
dbgflow-core. Reads a session from a JSON file. - reset_
session - Re-exported runtime and session types from
dbgflow-core. Clears the runtime and starts a new in-memory session. - save_
current_ session - Writes the current in-memory session to a JSON file.
- serve_
current_ session - Serves the current in-memory session over the embedded local HTTP server.
- serve_
session - Re-exported runtime and session types from
dbgflow-core. Serves a session over the embedded local HTTP server. - serve_
session_ with_ rerun - Re-exported runtime and session types from
dbgflow-core. Serves a session over the embedded local HTTP server and exposes a rerun API. - write_
session_ json - Re-exported runtime and session types from
dbgflow-core. Writes the current session to a JSON file. - write_
session_ snapshot_ from_ env - Re-exported runtime and session types from
dbgflow-core. Writes the current session into the directory pointed to byDBG_SESSION_DIR. - write_
session_ snapshot_ in_ dir - Re-exported runtime and session types from
dbgflow-core. Writes the current session into a directory using a sanitized file name.
Attribute Macros§
- dbg_
test - Re-exported procedural macros from
dbgflow-macros. Wraps a test so it becomes a persisted debugger session. - trace
- Re-exported procedural macros from
dbgflow-macros. Marks a function as a traced execution node. - ui_
debug - Re-exported procedural macros from
dbgflow-macros. Marks a struct or enum as a UI-visible data node.