DriveBy
Ever needed a counter to see how many times a line of code is passed? Here you go.
Examples
Run without arguments to get basic debug information:
pass!; // Stderr: [<count>][<line_number>]
You can pass a literal to have it printed:
// Stderr: [<count>][<line_number>] Special message
pass!;
// Stderr: [<count>][<line_number>] a
pass!;
// Stderr: [<count>][<line_number>] 5999999
pass
You can pass a variable with the Display
trait too:
let hw = String from;
let num = 5;
// Stderr: [<count>][<line_number>] Hello world
pass!;
// Stderr: [<count>][<line_number>] 5
pass!;