rqbit icon indicating copy to clipboard operation
rqbit copied to clipboard

set RUST_BACKTRACE=1 by default

Open milahu opened this issue 9 months ago • 0 comments

backtrace should be default on if RUST_BACKTRACE is unset in env

crashes can be rare, hard to reproduce this change makes it easier to debug crashes

RUST_BACKTRACE=full may be too verbose by default

https://stackoverflow.com/questions/54055139/how-to-pass-rust-backtrace-1-when-running-a-rust-binary-installed-in-debian#71731489

use std::env;
fn main() {
  // this method needs to be inside main() method
  env::set_var("RUST_BACKTRACE", "1");
}

milahu avatar Mar 22 '25 06:03 milahu