enter debug mode if debug flag is set in config file