Chocolate is toxic to dogs because it contains methylxanthines like caffeine and theobromine, which dogs cannot break down like we can.
Chocolate poisoning can cause severe symptoms and even death.
Call your vet if you think your dog has eaten chocolate ice cream.