Skip to content

Commit

Permalink
Show backtrace in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisaphone committed Mar 13, 2020
1 parent 4011016 commit ce4044f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/aether/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![cfg_attr(feature = "strict", deny(warnings))]

use crate::utils::marker::UnsafeSend;
use std::{thread, time::Duration};
use std::{env, thread, time::Duration};
use winapi::{
shared::minwindef::{BOOL, DWORD, HINSTANCE, LPVOID, TRUE},
um::{
Expand Down Expand Up @@ -51,6 +51,9 @@ fn init(hinst: HINSTANCE) {
AllocConsole();
}

#[cfg(debug_assertions)]
env::set_var("RUST_BACKTRACE", "1");

println!("Hello world :)");
hooks::install();

Expand Down

0 comments on commit ce4044f

Please sign in to comment.