Pain in the chest socket is considered to be caused by acute gastritis or gastric ulcer. Generally speaking, in acute gastritis or gastric ulcer, the pain in the epigastric region is very obvious, and it may be accompanied by pain in the lower part of the xiphoid process, and at the same time, there will be abdominal distension, nausea, vomiting, regurgitation of acid, belching, etc. The gastroscopy can be performed to clarify the cause. Gastroscopy can be performed to clarify, because gastroscopy can find mucosal lesions in the stomach, whether they are caused by inflammation or ulcers, and can also take out tissues for pathological examination. If gastritis or gastric ulcer is definitely the cause, you need to take oral medication to treat the symptoms, such as omeprazole or rabeprazole. It is also possible that the pain is caused by perforation of the upper gastrointestinal tract due to gastric ulcers. The nature of the pain when the perforation occurs will be very severe, and will be accompanied by nausea, vomiting, abdominal distension, and cessation of bowel movement. If necessary, abdominal CT or abdominal plain film can be done to see free gas in the abdominal cavity, and laparoscopic repair of gastric perforation is usually needed after the diagnosis is clear.