Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug flag to docs + fix configs example #36

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export EXTISM_ENABLE_WASI_OUTPUT=1 # Enable WASI output for debugging
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ target
Cargo.lock
extism-py
examples/*.wasm
.envrc
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ import extism

@extism.plugin_fn
def greet():
user = extism.Config.get("user")
user = extism.Config.get_str("user")
extism.output_str(f"Hello, {user}!")
```

Expand Down Expand Up @@ -349,6 +349,11 @@ extism call out.wasm count_vowels --wasi --input='Hello World Test!'
# => "{\"count\":4}"
```

### Debugging

To improve your debugging experience and get more information for panics
and crashes, you should set the `EXTISM_ENABLE_WASI_OUTPUT` env var.

## How it works

This works a little differently than other PDKs. You cannot compile Python to
Expand Down
Loading