But there isn't :P . Usually I do debug switches one of three ways:


1) global define (which removes code). This is pretty much for very high level debugging. Needs to be in a global header such as Config.h then.

2) local per file define/constant for per module for specific debugging. Especially for heavily verbose messages.

3) (kde way) use kDebug and it's corresponding dialog program to turn on/off debug.




For this project I don't expect it to grow much bigger without an overhaul. That combined with a naked constant in the global namespace makes me think local is the best choice.

On Tue, Feb 18, 2014 at 10:18 PM, Jason Cox <notifications@github.com>
wrote:

>>  
>>  #include "ui_config.h"
>>  
>> +const bool DebugEnabled = false;
> Why local to Wallpaper.cpp?  If the project expands into multiple source files, wouldn't you want a switch for debug messages all in one place?  Or do you apply switches only on a per-source-file basis?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/thothonegan/PlasmaWallpaperAnimatedImage/pull/2/files#r9853880