Hey! I am trying to obtain the current stack trace without invoking a panic, inside a linked function.
// this is awesome!
let backtrace = Backtrace::new();
I can access the stack frames using Backtrace::new() but I can't really do anything with it because all the functions that translate these into function names and strings are pub(crate) and internal to wasmtime.
Is there perhaps a safe way to obtain the current stack trace without calling a wasm function that executes an unreachable() instruction?
Hey! I am trying to obtain the current stack trace without invoking a panic, inside a linked function.
I can access the stack frames using
Backtrace::new()but I can't really do anything with it because all the functions that translate these into function names and strings arepub(crate)and internal to wasmtime.Is there perhaps a safe way to obtain the current stack trace without calling a wasm function that executes an unreachable() instruction?