Add RA_WAIT_DBG and docs

This commit is contained in:
vsrs
2021-01-25 16:38:58 +03:00
parent 3f0e34e08e
commit 185cd736a6
3 changed files with 10 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ FLAGS:
ENVIRONMENTAL VARIABLES:
RA_LOG Set log filter in env_logger format
RA_PROFILE Enable hierarchical profiler
RA_WAIT_DBG If set acts like a --wait-dbg flag
COMMANDS:

View File

@@ -29,7 +29,7 @@ fn main() {
fn try_main() -> Result<()> {
let args = args::Args::parse()?;
if args.wait_dbg {
if args.wait_dbg || env::var("RA_WAIT_DBG").is_ok() {
#[allow(unused_mut)]
let mut d = 4;
while d == 4 {