Skip to content

Commit 7373c64

Browse files
committed
Explain use of debug\! in tutorial
1 parent 07e087b commit 7373c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/tutorial.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,9 @@ do spawn {
16691669
}
16701670
~~~~
16711671

1672+
If you want to see the output of `debug!` statements, you will need to turn on `debug!` logging.
1673+
To enable `debug!` logging, set the RUST_LOG environment variable to `debug` (e.g., with bash, `export RUST_LOG=debug`)
1674+
16721675
## For loops
16731676

16741677
The most common way to express iteration in Rust is with a `for`

0 commit comments

Comments
 (0)