Function ctru::applets::error::set_panic_hook

source ·
pub fn set_panic_hook(call_old_hook: bool)
Expand description

Sets a custom panic hook that uses the error applet to display panic messages.

You can also choose to have the previously registered panic hook called along with the error applet popup, which can be useful if you want to use output redirection to display panic messages over 3dslink or GDB.

You can use std::panic::take_hook to unregister the panic hook set by this function.

§Notes

  • If the Gfx service is not initialized during a panic, the error applet will not be displayed and the old panic hook will be called.