Alternative methods to punishment for addressing this behavior include positive reinforcement training, such as rewarding your dog for going potty outside and providing plenty of praise and affection. You can also try using deterrents such as scents or sounds to discourage your dog from going potty inside, or providing an indoor potty area with fake grass or litter box for dogs who can't go outside.