Expand description
Provides diagnostics, debugger traps, and configurable debug logging.
Tracing macros retain their requested levels when extra diagnostics are
enabled and otherwise demote events to DEBUG. The module also re-exports
conditional result inspection and bounded formatting helpers for diagnostic
paths.
Re-exportsยง
use std::any::Any;๐use std::env;๐use std::env;๐use std::panic;๐use std::panic;๐use std::sync::LazyLock;๐use tracing::Level;๐pub use crate::result::DebugInspect;pub use crate::utils::debug::*;
Constantsยง
- INFO_
SPAN_ LEVEL - Selects
INFOorDEBUGfor diagnostic tracing spans.
Staticsยง
- DEBUGGER
- Reports whether the process environment suggests a
gdblaunch.
Functionsยง
- logging
- Returns whether extra logging calls retain their requested levels.
- panic_
handler - Invokes a debugger trap before forwarding a panic to another hook.
- panic_
str - Extracts a static string slice from a boxed panic payload.
- rttype_
name - Returns the compiler-generated name of an argumentโs statically inferred type.
- set_
panic_ ๐trap - trap
- Raises a debugger breakpoint on supported build targets.
- type_
name - Returns the compiler-generated name of a generic type.
Attribute Macrosยง
- recursion_
depth - Reports an annotated itemโs parsed syntax-tree depth and length during compilation.