Skip to content

Is it possible to see a more readable stack trace in the error in the chrome console? #2067

Answered by gbj
claytonweaver asked this question in Q&A
Discussion options

You must be logged in to vote

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 and console_error_panic_hook::set_once() in your main function.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@claytonweaver
Comment options

Answer selected by claytonweaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants