I think I have to show this thread to my husband because he has that habit of sharing his food with our dogs. It's not the vet but the dog breeder who advised us to refrain from sharing our food with our dogs. First, the food may not be suitable because salty or sweet foods may be harmful. Second, it is a bad habit for the dog to be drooling every time a human eats.
My husband usually eat snacks while in front of the computer which is situated in the living room. When our dogs hear the sound of a food wrapper, they would come near my husband and beg. They love nuts especially chestnuts and even walnuts which is quite bitter, our dogs still like it. With pastries, it is sweet so it is a given. But when I'm at home, my husband doesn't eat in the computer, maybe pretending that I do not know. But I have to admit that I sometimes give our dogs some sweets like the cake for Pipoy's birthday last Sunday, just a small piece only... and without the knowledge of my husband.