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

Method get_locals

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

Source from the content-addressed store, hash-verified

877 }
878
879 async fn get_locals(
880 &mut self,
881 self_: Resource<Frame>,
882 d: Resource<Debuggee>,
883 ) -> Result<Vec<Resource<WasmValue>>> {
884 let frame = self.get(&self_)?.0.clone();
885 let d = debugger(self, &d)?;
886 let locals = d.frame_locals(frame).await?;
887 let mut resources = vec![];
888 for local in locals {
889 resources.push(self.push(local)?);
890 }
891 Ok(resources)
892 }
893
894 async fn get_stack(
895 &mut self,

Callers 1

read_wasm_localMethod · 0.80

Calls 6

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

Tested by

no test coverage detected