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

Method module_remove_breakpoint

crates/debugger/src/host/opaque.rs:566–576  ·  view source on GitHub ↗
(&mut self, module: Module, pc: u32)

Source from the content-addressed store, hash-verified

564 }
565
566 async fn module_remove_breakpoint(&mut self, module: Module, pc: u32) -> Result<()> {
567 self.with_store(move |store| -> Result<()> {
568 store
569 .edit_breakpoints()
570 .expect("guest debugging is enabled")
571 .remove_breakpoint(&module, wasmtime::ModulePC::new(pc))
572 .map_err(|_| wit::Error::InvalidPc)?;
573 Ok(())
574 })
575 .await?
576 }
577
578 async fn finish(&mut self) -> Result<()> {
579 self.finish().await?;

Callers 1

remove_breakpointMethod · 0.80

Calls 6

OkFunction · 0.85
with_storeMethod · 0.80
edit_breakpointsMethod · 0.80
newFunction · 0.50
remove_breakpointMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected