dirty-debug 0.1.0

Quick and dirty debugging
Documentation

Build Status Code Coverage Dependency status crates.io Downloads Github stars Documentation License

Dirty debug

dirty-debug offers a quick and easy way to log message to a file for debugging.

A simple but powerful way to debug a program is to printing some messages to understand your code’s behavior. However, sometimes you don’t have access to the stdout/stderr streams (for instance, when your code is loaded and executed by another program). dirty-debug offers you a simple, no-setup, way to log to a file:

ddbg!("/tmp/debug_log", "Control reached here.  State={}", state);

It’s as simple as that. Every time you call ddbg!() you will append the debug message to that file, together with the filename and line number of the source code’s location.

Note that this is not meant to be a normal form of logging: dirty-debug should only be used temporarily during your debug session and discarded after that.