Skip to content

wasmtime should have more options for debugging errors in early program startup #783

@bacongobbler

Description

@bacongobbler

given an example that displays output on stdout - like a "hello world" application - wasmtime --env appears to drop stdout entirely.

><> cat src/main.rs 
fn main() {
    println!("hello world!");
}
><> cargo build --target wasm32-wasi
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
><> wasmtime ./target/wasm32-wasi/debug/wasm32-wasi-demo.wasm 
hello world!
><> wasmtime --env 'FOO=bar' ./target/wasm32-wasi/debug/wasm32-wasi-demo.wasm 
><>

Tested with both 0.8.0 and the development release available on the releases page. Both demonstrate the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions