Difficulty breathing is the result of the animal trying to get enough oxygen and, as a result, the owner will notice a more rapid or forceful nature of the breathing pattern.
Occasionally, dogs will develop difficulty breathing (or coughing) when lying down or asleep.