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

Method add_debugger_api

src/commands/run.rs:399–405  ·  view source on GitHub ↗
(
        &mut self,
        linker: &mut wasmtime::component::Linker<Host>,
    )

Source from the content-addressed store, hash-verified

397
398 #[cfg(feature = "debug")]
399 pub(crate) fn add_debugger_api(
400 &mut self,
401 linker: &mut wasmtime::component::Linker<Host>,
402 ) -> Result<()> {
403 wasmtime_debugger::add_to_linker(linker, |x| x.ctx().table)?;
404 Ok(())
405 }
406
407 /// Executes the `main` after instantiating it within `store`.
408 ///

Callers 2

serve_under_debuggerMethod · 0.80
executeMethod · 0.80

Calls 3

OkFunction · 0.85
add_to_linkerFunction · 0.50
ctxMethod · 0.45

Tested by

no test coverage detected