Ad-hoc, temporary print-based debugging Rust code without new type constraints (stackoverflow.com)stack
28 points by gspr in stackoverflow.com · 41m ago · stack comments
Suppose I have some Rust code like fn foo<T>(x: T) { // Complicated function. } that is called from a gazillion places all over my codebase. Suppose, then, that I realize that something is wrong deep within foo . Sometimes, I might want to do some quick print-based debugging wit…