TerrorJack opened issue #6191:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
It would be very nice if
wasmtimehas a WASI strace feature, which logs all WASI syscalls.Benefit
This feature improves observability of wasm modules being executed, and it's quite useful to debug the wasm module when things go wrong.
Implementation
Likely a CLI option, and some modification to the
wasmtime-wasicrate.Alternatives
Some third-party rust program that uses the
wasmtimecrate and implements the strace middleware there.
abrown commented on issue #6191:
I've used the
RUST_LOGenvironment variable for this in the past.
TerrorJack commented on issue #6191:
Ah I didn't read the documentation clearly! There's already
RUST_LOG=wasi_common=trace. Thanks a lot for reminding me @abrown!
TerrorJack closed issue #6191:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
It would be very nice if
wasmtimehas a WASI strace feature, which logs all WASI syscalls.Benefit
This feature improves observability of wasm modules being executed, and it's quite useful to debug the wasm module when things go wrong.
Implementation
Likely a CLI option, and some modification to the
wasmtime-wasicrate.Alternatives
Some third-party rust program that uses the
wasmtimecrate and implements the strace middleware there.
Last updated: Dec 06 2025 at 06:05 UTC