debug to trace in events