MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_backtrace_max_frames

Method wasm_backtrace_max_frames

crates/wasmtime/src/config.rs:563–566  ·  view source on GitHub ↗

Configures the maximum number of WebAssembly frames to collect in backtraces. A backtrace may be collected whenever an error is returned from a host function call through to WebAssembly or when WebAssembly itself hits a trap condition, such as an out-of-bounds memory access. This flag indicates, in these conditions, whether the backtrace is collected or not and how many frames should be collected

(&mut self, limit: Option<NonZeroUsize>)

Source from the content-addressed store, hash-verified

561 ///
562 /// [`WasmBacktrace`]: crate::WasmBacktrace
563 pub fn wasm_backtrace_max_frames(&mut self, limit: Option<NonZeroUsize>) -> &mut Self {
564 self.wasm_backtrace_max_frames = limit;
565 self
566 }
567
568 /// Configures whether to generate native unwind information
569 /// (e.g. `.eh_frame` on Linux).

Callers 7

test_trap_stack_overflowFunction · 0.80
runFunction · 0.80
configMethod · 0.80
check_stacksFunction · 0.80

Calls

no outgoing calls

Tested by 4

test_trap_stack_overflowFunction · 0.64