Skip to content

reem/rust-inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inspect Build Status

A lightweight library providing a very useful inspect! macro that logs meta information like the filename and line number in addition to the expressions you debug and their results.

Example

#![feature(phase)]

extern crate debug;
#[phase(plugin, link)]
extern crate inspect;

fn main() {
    let a = 7u;
    let b = 4u;
    inspect!(a, b, a + b);
    // => file.rs - 10: a = 7, b = 4, a + b = 11
}

Install

Add:

[dependencies.inspect]

git = "https://github.com/reem/rust-inspect"

to your Cargo.toml.

License

MIT

About

A simple debugging library for rust in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages