set debug mode from global debug mode and auto dump from not global debug mode