Treating whooping cough includes drinking plenty of fluids to prevent dehydration. Drinking fluids also loosens mucus. You can also eat smaller, more frequent meals if coughing fits are causing vomiting.