Hmm, I'm thinking that bool is case sensitive perhaps?
Try
bool debug = true;