She made it through the democrat primary debates, but there was little pressure in those. Anxiety can make coughing worse.
This was so bad, she should have excused herself for a minute and left the stage. That would have been better than sounding like she was dying up there on stage.