Replies: 4 comments 12 replies
-
Hi, to make sure the host doesn't crash, you can add a try catch:
However, you can't debug a wasm plugin using VS. Instead, you could use Console.Writeline (aka printf debugging). Make sure you enable WASI output to see the logs by seeting https://github.com/extism/extism/tree/main/runtime#environment-variables |
Beta Was this translation helpful? Give feedback.
-
@mhmd-azeez thanks... Given you reply above, I cloned the SDK repo, and tried to run the tests. I note that some of the If I try and run the
|
Beta Was this translation helpful? Give feedback.
-
@Simonl9l i have updated the WasmTests project to reference the extism runtime nuget package: You should be able to run the tests on your machine now
For the PDK yes, but the SDK supports lower versions too. These projects are not using the Extism PDK |
Beta Was this translation helpful? Give feedback.
-
@mhmd-azeez thanks again, I pulled the latest I had to fix this reference to point to Debug (than Release): private string GetWasmPath(string name)
{
return Path.Combine(
Environment.CurrentDirectory,
$"../../../../../samples/{name}/bin/Debug/net8.0/wasi-wasm/AppBundle/{name}.wasm");
} However even with that it explodes wih the logging saying
To confirm I'm running on an Apple Silicon under under MacOS. This is expected to work? |
Beta Was this translation helpful? Give feedback.
-
If I am using the .Net Host SDK and the .Net PDK, (including host functions) is there a way to debug the plugin?
Both are in the same solution, but breakpoints in the plugin/PDK implementation won't activate.
I'm also using Rider but that should not make any difference?
when I try in invoke a method on the plugin the process terminates with zero error reporting.
The explosion happens when the
LibExtism.extism_plugin_call
is invoked.Beta Was this translation helpful? Give feedback.
All reactions