Gagging is a noise an animal makes usually before or after a cough and can sound like they are trying to vomit while also coughing. Coughing does not bring anything up, except saliva or mucus, while vomiting results in the expulsion of stomach contents. Notice the order in which the dog coughs and gags, as it can help determine the types of diseases that should be considered.