Debugging for Extism plugins
$ make && sudo make installThis will install extism-dbg and extism-lldb:
extism-dbgis a minimal Extism host used to wrap the plugin.extism-lldbis a shim to use LLDB to debug Extism plugins called fromextism-dbg
The following command will start LLDB with a breakpoint set on the specified plugin function,
just type run at the LLDB prompt to start executing the plugin:
$ extism-lldb count-vowels.wasm count_vowels --input @input.txtArguments:
- WebAssembly module or Manifest file
- Function to call
See the output of extism-lldb --help for a list of options.
- The
--sourceparameter can be used to specify the search path(s) for the original source files - If the
--inputparameter starts with@then the input will be loaded from a file otherwise it will be passed as-is. --lldbcan be used to specify the LLDB executable- Any arguments after the function name will be passed to LLDB directly
