Module panic

Source
Expand description

Handling of WASM panic hook that allows activation of console-based panic hook as well as a browser-based panic hook. (the browser-based panic hook activates a full-screen debug information output in case of a panic - useful on mobile devices or where the user otherwise has no access to console/developer tools)

Functionsยง

init_browser_panic_hook
Initialize Rust panic handler in browser mode.
init_console_panic_hook
Initialize Rust panic handler in console mode.
show_panic_hook_logs
Present panic logs to the user in the browser.