Add a before Listener to debug every event