The causes of pain when squeezing the heart position include rib fracture, costochondritis, herpes zoster, pneumothorax, etc. The treatments include medication and surgery. 1. Rib fracture: when the rib fracture, pressing the heart position will easily cause the fracture broken end to stimulate the surrounding tissues, which will cause pain and discomfort, at this time, you can give the fracture incision and internal fixation and other surgical treatments. 2. Costal chondritis: due to various factors triggering inflammation of the costal cartilage, at this time there will be chest pain, you can give amoxicillin, ceftriaxone and other drugs antibacterial treatment. 3. Herpes zoster: When varicella zoster virus infects the human body, the virus damages the skin of the chest and causes pain, at this time, you can give antiviral treatment with drugs such as famciclovir and bupropion. 4. Pneumothorax: If the chest pain is caused by pneumothorax, closed chest drainage can be given to expel the gas from the chest. Finally, if you experience pain when squeezing your heart, please consult a doctor and take the above medications as prescribed by your doctor. It is recommended that if the pain is recurring, consult a doctor as soon as possible to avoid delay.