Crates.io | better-panic |
lib.rs | better-panic |
version | 0.3.0 |
source | src |
created_at | 2019-06-20 17:15:54.145859 |
updated_at | 2022-01-15 20:28:21.605344 |
description | Pretty panic backtraces inspired by Python's tracebacks. |
homepage | |
repository | https://github.com/mitsuhiko/better-panic |
max_upload_size | |
id | 142366 |
size | 434,709 |
better-panic
gives you pretty backtraces for panics.
It is inspired by Python tracebacks and tries to replicate them as well as possible. This is what it looks like:
Some of the code is based on the color-backtrace library.
The most common way to use it is to invoke the install
function
which installs a panic handler. In debug builds the backtrace is shown
automatically, in release builds it's hidden by default.
better_panic::install();
For more configuration see the Settings
object.