Long term cough with phlegm needs to be treated symptomatically first. You can take orally ambroxol hydrochloride dispersible tablets and other expectorant drugs for symptomatic treatment. In addition, it is also necessary to treat the causes. For example, chronic obstructive pulmonary disease (COPD) is a common cause of long-term cough and sputum. If COPD is the cause, it is necessary to give up smoking, prevent respiratory tract infection, inhale long-term bronchodilators for treatment, and sometimes inhale long-term bronchodilators and glucocorticoids for treatment. Bronchiectasis is also a common cause of long-term cough and sputum. Patients with bronchiectasis often need symptomatic treatment, and may need to inhale long-term bronchodilators to improve the symptoms of chest tightness. In addition, attention should be paid to preventing respiratory tract infection.