I was just looking through one of my packages for inclusion in this, and found some messages that I defined that work wonders: Debug::
. By default, they are turned off, so don't produce much overhead. But, I can litter my code with them, and turn them on if I need to figure out exactly how a bit of code is behaving.