Z:\dev\wasm\test_breakpoint\dist>lldb -- .\wasmtime.exe -D debug-info --invoke app_init .\breakable.wasm (lldb) target create ".\\wasmtime.exe" (lldb) Current executable set to 'Z:\dev\wasm\test_breakpoint\dist\wasmtime.exe' (x86_64). (lldb) settings set -- target.run-args "-D" "debug-info" "--invoke" "app_init" ".\\breakable.wasm" (lldb) b app_init Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) r (lldb) Process 21164 launched: 'Z:\dev\wasm\test_breakpoint\dist\wasmtime.exe' (x86_64) 1 location added to breakpoint 1 Process 21164 stopped * thread #1, name = 'main', stop reason = breakpoint 1.1 frame #0: 0x00000276bdb5105a JIT(0x276bc2ebfb0)`app_init at lib.rs:3:13 1 #[no_mangle] 2 pub extern "C" fn app_init() -> i32 { -> 3 let x = 42; 4 std::hint::black_box(x); // Still prevents optimization 5 x // Return the value 6 } warning: This version of LLDB has no plugin for the language "rust". Inspection of frame variables will be limited. (lldb) quit Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y Z:\dev\wasm\test_breakpoint\dist>lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm (lldb) target create ".\\test_wasmtime_debug_api.exe" (lldb) Current executable set to 'Z:\dev\wasm\test_breakpoint\dist\test_wasmtime_debug_api.exe' (x86_64). (lldb) settings set -- target.run-args ".\\breakable.wasm" (lldb) b app_init Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) r (lldb) Process 26260 launched: 'Z:\dev\wasm\test_breakpoint\dist\test_wasmtime_debug_api.exe' (x86_64) Process 26260 exited with status = 1 (0x00000001) (lldb) q Z:\dev\wasm\test_breakpoint\dist>.\test_wasmtime_debug_api.exe .\breakable.wasm Z:\dev\wasm\test_breakpoint\dist>.\test_wasmtime_debug_api.exe .\breakable.wasm Z:\dev\wasm\test_breakpoint\dist>.\test_wasmtime_debug_api.exe .\breakable.wasm Z:\dev\wasm\test_breakpoint\dist>.\test_wasmtime_debug_api.exe .\breakable.wasm Loading: .\breakable.wasm Return value: 42 WASM function 'app_init' executed successfully. Z:\dev\wasm\test_breakpoint\dist>lldb -- .\test_wasmtime_debug_api.exe .\breakable.wasm (lldb) target create ".\\test_wasmtime_debug_api.exe" (lldb) Current executable set to 'Z:\dev\wasm\test_breakpoint\dist\test_wasmtime_debug_api.exe' (x86_64). (lldb) settings set -- target.run-args ".\\breakable.wasm" (lldb) b app_init Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) r (lldb) Process 7052 launched: 'Z:\dev\wasm\test_breakpoint\dist\test_wasmtime_debug_api.exe' (x86_64) (lldb) quit