Added support for debugging events.