We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 185cd73 commit ad603c3Copy full SHA for ad603c3
crates/rust-analyzer/src/bin/args.rs
@@ -52,7 +52,8 @@ FLAGS:
52
--log-file <PATH> Log to the specified file instead of stderr
53
--no-buffering Flush log records to the file immediately
54
55
- --wait-dbg Wait until a debugger is attached to
+ --wait-dbg Wait until a debugger is attached to.
56
+ The flag is valid for debug builds only
57
58
ENVIRONMENTAL VARIABLES:
59
RA_LOG Set log filter in env_logger format
crates/rust-analyzer/src/bin/main.rs
@@ -29,6 +29,8 @@ fn main() {
29
30
fn try_main() -> Result<()> {
31
let args = args::Args::parse()?;
32
+
33
+ #[cfg(debug_assertions)]
34
if args.wait_dbg || env::var("RA_WAIT_DBG").is_ok() {
35
#[allow(unused_mut)]
36
let mut d = 4;
0 commit comments