Is it possible to see a more readable stack trace in the error in the chrome console? #2067
-
Noob Question: As I have been following along with the parent child example in the book, I tried seeing what would happen if I try to get a write signal that doesn't exist. I couldn't even see the message that was passed into .expect() Is there a way to enable some kind of source mapping so that we can get the actual line numbers in the stack trace of the panic? Or is that a limitation of WASM? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Great question! We should make sure to add it to the docs if it's not there already -- you should set up and use |
Beta Was this translation helpful? Give feedback.
Great question! We should make sure to add it to the docs if it's not there already -- you should set up and use
console_error_panic_hook
, which is in all the examples. Super easy, just add the crate as a dependency andconsole_error_panic_hook::set_once()
in your main function.