Added debug hook for pre-config.