Event-based debug with configurable output