Crate workflow_panic_hook

source ·
Expand description

§console_error_panic_hook

github crates.io docs.rs license

This crate is based on console_error_panic_hook but provides two configuration modes - console output and full-page output, where the panic will create a full-screen DIV element dumping the stack info in it. This is useful when debugging on devices without access to console output.

§Error.stackTraceLimit

Many browsers only capture the top 10 frames of a stack trace. In rust programs this is less likely to be enough. To see more frames, you can set the non-standard value Error.stackTraceLimit. For more information see the MDN Web Docs or v8 docs.

Enums§

Functions§

  • Set the console.error panic hook the first time this is called. Subsequent invocations do nothing.