actually check debugging flag
Merge pull request #1 from cybercode/master

fix debug config