Macro wrap some of the other debug checks related to event listeners.