about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Luu <danluu@gmail.com>2013-04-17 11:51:43 -0400
committerDan Luu <danluu@gmail.com>2013-04-17 11:51:43 -0400
commit7373c64a4c0c7e72c8632be255d930d121481f1f (patch)
tree5966558c3400a56ed25748efd3b50dc01a32a63c
parent07e087bf310e7e7911bf05efa36a2cdb57855a4e (diff)
downloadrust-7373c64a4c0c7e72c8632be255d930d121481f1f.tar.gz
rust-7373c64a4c0c7e72c8632be255d930d121481f1f.zip
Explain use of debug\! in tutorial
-rw-r--r--doc/tutorial.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 18bc94bdba5..01dd76647f5 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`