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

Method debug_bytecode

crates/wasmtime/src/runtime/module.rs:700–702  ·  view source on GitHub ↗

Returns the original Wasm bytecode for this module, if it is available. Bytecode is only retained when the [`Engine`] was configured with `guest-debug` support enabled (see [`Config::guest_debug`]). Returns `None` when the module was compiled without that option. [`Config::guest_debug`]: crate::Config::guest_debug

(&self)

Source from the content-addressed store, hash-verified

698 ///
699 /// [`Config::guest_debug`]: crate::Config::guest_debug
700 pub fn debug_bytecode(&self) -> Option<&[u8]> {
701 self.compiled_module().bytecode()
702 }
703
704 /// Returns the list of imports that this [`Module`] has and must be
705 /// satisfied.

Callers 1

bytecodeMethod · 0.80

Calls 2

compiled_moduleMethod · 0.80
bytecodeMethod · 0.45

Tested by

no test coverage detected