From d6cad29f49ffae75c5af09a45fca788945aad772 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Sat, 8 Oct 2016 17:33:38 +0200 Subject: [PATCH] Print backtrace on panic (#2535) --- parity/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parity/main.rs b/parity/main.rs index b74af7b3d87..e0d6dfe3671 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -196,6 +196,9 @@ fn sync_main() -> bool { } fn main() { + // Always print backtrace on panic. + ::std::env::set_var("RUST_BACKTRACE", "1"); + if sync_main() { return; }