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

Method get_stack

crates/debugger/src/host/api.rs:894–907  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Frame>,
        d: Resource<Debuggee>,
    )

Source from the content-addressed store, hash-verified

892 }
893
894 async fn get_stack(
895 &mut self,
896 self_: Resource<Frame>,
897 d: Resource<Debuggee>,
898 ) -> Result<Vec<Resource<WasmValue>>> {
899 let frame = self.get(&self_)?.0.clone();
900 let d = debugger(self, &d)?;
901 let stacks = d.frame_stack(frame).await?;
902 let mut resources = vec![];
903 for val in stacks {
904 resources.push(self.push(val)?);
905 }
906 Ok(resources)
907 }
908
909 async fn parent_frame(
910 &mut self,

Callers 1

read_wasm_stackMethod · 0.80

Calls 6

debuggerFunction · 0.85
OkFunction · 0.85
frame_stackMethod · 0.80
cloneMethod · 0.45
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected