debug dist event handler