Skip to content

Print debug messages if the DEBUG environment variable is set

License

Notifications You must be signed in to change notification settings

Ernest1338/debug-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debug-message

Print debug messages if the DEBUG environment variable is set

Usage

use debug_message::debug;

fn main() {
    println!("this will be printed every time");
    debug("this will only be printed if the DEBUG env var is set");
}

For more code examples check out the usage.rs example.

License

This project is distributed under the MIT license.

About

Print debug messages if the DEBUG environment variable is set

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages