If using set_hook
, we can get lots of information, especially the stack trace - which is very helpful. However, with catch_unwind
, I only get a Result
which contains almost no useful information at all. Therefore, I wonder how to get panic information (especially stack trace) with Rust's catch_unwind
? Thanks!
I am in a multi-threading environment, where there are many threads concurrently running and any can panic. I guess I should use set_hook
together with catch_unwind
, and also uses some thread-local variables, but I am not sure about whether it is feasible and the details.
Thanks for any suggestions!