From 7373c64a4c0c7e72c8632be255d930d121481f1f Mon Sep 17 00:00:00 2001 From: Dan Luu Date: Wed, 17 Apr 2013 11:51:43 -0400 Subject: [PATCH] Explain use of debug\! in tutorial --- doc/tutorial.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/tutorial.md b/doc/tutorial.md index 18bc94bdba534..01dd76647f5fd 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1669,6 +1669,9 @@ do spawn { } ~~~~ +If you want to see the output of `debug!` statements, you will need to turn on `debug!` logging. +To enable `debug!` logging, set the RUST_LOG environment variable to `debug` (e.g., with bash, `export RUST_LOG=debug`) + ## For loops The most common way to express iteration in Rust is with a `for`