backtrace_force

Macro backtrace_force 

Source
macro_rules! backtrace_force {
    () => { ... };
}
Expand description

Creates a backtrace context that always captures regardless of environment.

This macro uses force_capture() to always generate a backtrace, ignoring RUST_BACKTRACE/RUST_LIB_BACKTRACE settings. Use this for debugging scenarios where you need guaranteed backtrace information.

§Performance Note

This has higher overhead than backtrace!() since it always captures stack frames, regardless of environment settings.

§Examples

use error_rail::{ComposableError, backtrace_force};

let err = ComposableError::<&str>::new("panic occurred")
    .with_context(backtrace_force!());