My 2 year old can't stop coughing in the middle of the night, what can I do?

Humidfier. You can try humidifier and saline nasal spray. Make sure he is well hydrated. If he/she is very much in distress, please take him/her to the er. If not, take him/her to a pediatrician in the morning.