Back to Flutter Rust Bridge

Stack Traces

website/v1_mdbook/src/feature/stack_trace.md

2.12.0409 B
Original Source

Stack Traces

To pass Rust stack traces to flutter, you need to set RUST_BACKTRACE in the running application. For that simply add env::set_var("RUST_BACKTRACE", "1"); before initialising the bridge.

Note: The --dart-define will not work, you must use env::set_var, because the former does not set the "environment variable" in the common sense, but instead a special thing only visible to Dart.