Pain in rib cage
during severe coughing
, may be due to muscular pain
of the thoracic cage.
You should get yourself examined by a Physician and get a X-Ray Chest done.
Also take antihistamine like Fexofenadine
and cough suppressants syrup containing Codeine. Pain can be relieved by taking pain killers and hot fomentation. You should take medicines under medical supervision.
I hope this is useful to you.