debug_macros 0.0.1

A simple set of macros to help debugging.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 108.56 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • borisfaure/debug_macros.rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • borisfaure

debug_macros

A simple set of macros (only one so far) to help debugging.

Currently it contains:

  • dbg!() is a macro to print line only when a crate is compiled in debug mode. In release mode, dbg!() is a noop. It prints the crate, the file and and the line where dbg!() is called.

Installation

This crate is fully compatible with Cargo. Just add it to your Cargo.toml:

[dependencies]
debug_macros = "*"

Quick example

#[macro_use]
extern crate debug_macros;

fn main() {
    dbg!("2+2={}", 2+2);
}