What causes lung pain when you cough?

Coughing up lung pain is also often referred to as coughing up chest pain. The most common cause is lung infection, inflammation spread to the pleura will appear chest pain, or pleurisy will appear cough up chest pain symptoms. Sudden onset of coughing up chest pain, the most common are sudden pneumothorax or pulmonary embolism, can appear sudden cough chest pain symptoms. In this case, it is necessary to go to the hospital in time, through the lung CT, pulmonary arteriography, blood test, electrocardiogram, cardiac enzymes and other related examinations, to further clarify the cause of coughing chest pain. Pneumothorax and pulmonary embolism are acute and life-threatening conditions if not treated in time, so it is important to seek timely medical attention. If it is an infectious lung disease or pleurisy, different treatment programs will be given according to the different pathogenic microorganisms causing the lung infection or pleurisy. If it is caused by bacterial infection, antibiotics are given to fight infection, if it is caused by viral infection, antiviral treatment can be given, and if it is caused by pathogenic microorganisms such as mycoplasma and chlamydia, macrolides can be given, or quinolone antibiotics can be given to adults 18 years old for anti-infection treatment.