by DinaCoder99 · 2y ago · 0 comments
Normally print isn’t a debug message function, people just use it like that. (it normally works on non debug builds)
If your console app is writing output to any device, it must, for instance, handle errors gracefully.
That means, at least in Rust, write! rather than print!.
I personally find myself using print debugging as a last resort when the debugger doesn't suffice.