To heal cracked nipples while breastfeeding, try using lanolin cream, applying warm compresses, and adjusting breastfeeding positions.