Skip to main content

Module debug

Module debug 

Source
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 INFO or DEBUG for diagnostic tracing spans.

Statics§

DEBUGGER
Reports whether the process environment suggests a gdb launch.

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.