Although over-the-counter cough medicines are sometimes effective
, if coughing persists or is disturbing, painful, or dry, the doctor may recommend a medication containing codeine or a related compound. When the patient has a tumor involving the lung area that is responsible for the coughing, an opioid such as hydrocodone or morphine may be needed. Corticosteroids may also be prescribed for persistent cough.