Debug mode to config file