console_error_panic_hook
console_error_panic_hook copied to clipboard
A panic hook for wasm32-unknown-unknown that logs panics with console.error
### Describe the Bug Crates.io lists 0.1.7 as the latest release, but there's no tag in the repo for that version. The metadata points to commit f998b08b76655c16b948fc329c26ba563e9b3384 which also doesn't...
Hi, I'm working on an Electron application, Enso. Enso needs to do multiple things in our panic hook: We have an application-specific API to submit the backtrace to, but we'd...
When I try to use `console_error_panic_hook` in my yew project, my app panics on `std::panic::set_hook(box console_error_panic_hook::hook)` with: > Uncaught (in promise) TypeError: WebAssembly.instantiate(): Import #7 module="__wbindgen_placeholder__" error: module is not...
- in release we do not want to show full compilation file path from panic info - because it reveals interanals - can we disable it, may be via some...
[//]: # (dependabot-start) ⚠️ **Dependabot Preview has been deactivated** ⚠️ This pull request was created by Dependabot Preview, and you've upgraded to Dependabot. This means it won't respond to `dependabot`...
### Summary I have a workaround more or less; not for this issue exactly but it's just a way for me to keep working. Anyways I still wanted to ask...
### Motivation Currently, errors are logged to the console using `console.error`. However, it would be useful to provide your own callback for the message, which would allow for using `tracing::error`...
### Motivation Currently panics are printed to the dev console. However, the errors are not manifesting in the web UI. It is not a great user experience. I understand that...
### Describe the Bug I'm defining my initalization function like so: ```rs #[wasm_bindgen] pub fn init() { #[cfg(feature = "console_error_panic_hook")] panic::set_hook(Box::new(console_error_panic_hook::hook)); //set_panic_hook(); wasm_logger::init(wasm_logger::Config::default()); } ``` This gives the following error...