Same thing happened to my wife's family dog when she was a kid. Dog ate a whole loaf of bread dough left rising on a table. They came home and the dough was gone and the dog was laying on the floor with a grotesquely distended stomach and groaning. My F-I-L was an orthopedic surgeon and he shoved a piece of surgical tube down the dog's throat and the dog vented for about 5 minutes.Eating the dried food reminded me of a dog we had once. She was a medium-sized Schnauzer and was very well behaved and never stole food--at least as long as someone was in the same room as she was.
I had made some sweet roll dough and I had put it in a big Tupperware container while it rose. We took the dog with us to my parent's house for dinner on a Sunday. We decided to stop at a store for something and left her in the car. When we got back, we discovered that the lid had popped off, and she had eaten about half of the sweet roll dough.
I suppose we should have taken her to the vet, but we didn't. She was very bloated all day and very gassy, to say the least.