Skip to content

Commit

Permalink
Explain use of debug\! in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
danluu committed Apr 17, 2013
1 parent 07e087b commit 7373c64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/tutorial.md
Expand Up @@ -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`
Expand Down

5 comments on commit 7373c64

@bors
Copy link
Contributor

@bors bors commented on 7373c64 Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 7373c64 Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging danluu/rust/debug_tutorial = 7373c64 into auto

@bors
Copy link
Contributor

@bors bors commented on 7373c64 Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

danluu/rust/debug_tutorial = 7373c64 merged ok, testing candidate = acf8887

@bors
Copy link
Contributor

@bors bors commented on 7373c64 Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 7373c64 Apr 18, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = acf8887

Please sign in to comment.