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

Method debug

crates/test-programs/src/bin/debugger_component.rs:24–34  ·  view source on GitHub ↗
(d: &Debuggee, args: Vec<String>)

Source from the content-addressed store, hash-verified

22
23impl api::exports::bytecodealliance::wasmtime::debugger::Guest for Component {
24 fn debug(d: &Debuggee, args: Vec<String>) {
25 match args.get(1).map(|s| s.as_str()) {
26 Some("simple") => {
27 test_simple(d);
28 }
29 Some("loop") => {
30 test_loop(d);
31 }
32 other => panic!("unknown test mode: {other:?}"),
33 }
34 }
35}
36
37struct Resumption {

Callers

nothing calls this directly

Calls 5

test_loopFunction · 0.85
test_simpleFunction · 0.70
mapMethod · 0.45
getMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected