Event hook for debug time