Skip to main content

panic_handler

Function panic_handler 

Source
pub fn panic_handler(
    info: &PanicHookInfo<'_>,
    next: &dyn Fn(&PanicHookInfo<'_>),
)
Expand description

Invokes a debugger trap before forwarding a panic to another hook.

If the trap returns, the supplied hook receives the original panic information. Supported targets can therefore stop in a debugger before normal panic reporting continues.