Skip to content

Commit

Permalink
add docs + setup for improving debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
fliepeltje committed Nov 28, 2024
1 parent 7b225fd commit 624d3d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
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
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
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

0 comments on commit 624d3d4

Please sign in to comment.