You chose an unfortunate name for your variable, probably it clashes with a defined macro name, that is in a certain header file your project (either directly or indirectly) includes, there is something like
#define DEBUG
I would use a 'less dangerous name', like, for instance
mydebug
.