Debugging longitudinal bunch generation