Determine debug from config