I agree, evaluating the debug expressions all the time would be nice. And being able to tune the amount of debug prints at runtime would be very handy as well.
Casper Hornstrup wrote:
What, no checkboxes? ;-) I'm pro implementing this system. I would also like to see the compiler evaluate any expressions in non-DBG builds. We could put it inside an "if (0)" so the compiler will optimize it away. A significant percentage of our build errors are due to these expressions not being evaluated in non-DBG mode.