Why undef DEBUG here? Where do you expect it to have been defined?