Examples of how large condensed debug output can appear. These patterns are amenable to outputting large amounts of condensed structured object representations when used in generic contexts or with objects of highly varying sizes:
Rust
- Default
Debug output format {:?}
- Span fields created by
#[tracing::instrument]
- Log event fields crated by
? prefix e.g. tracing::info!(?obj)
Elixir
Python
- Default
repr() output, and string interpolation
Examples of how large condensed debug output can appear. These patterns are amenable to outputting large amounts of condensed structured object representations when used in generic contexts or with objects of highly varying sizes:
Rust
Debugoutput format{:?}#[tracing::instrument]?prefix e.g.tracing::info!(?obj)Elixir
inspect()outputPython
repr()output, and string interpolation