In some cases, medication may be prescribed by a veterinarian to help address underlying medical conditions that contribute to poop-eating behavior. However, behavioral modification techniques are typically the first line of defense against this behavior.