bearophile wrote: > Is this an acceptable debug printing for you? Yes. In fact, I view it as better than always seeing it twenty times because it reflects what's actually going on.
You already know what it's supposed to do, and if it did what it was supposed to do, you wouldn't be debugging it. So now you need to know what it actually is doing, and if optimizations change that, better to know about it. The single print tells you that.