set debug mode from global debug mode and auto dump from not global debug mode
Merge pull request #29 from fzerorubigd/master

Debug mode from global debug mode