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