Thanks for your query to HCMagic.
A pain which increases on coughing is characteristic of pleuritic pain (pain arising from a thin sac surrounding our lungs). It may be due to infection of underlying lung, inflammation of pleura
or at times inflammation of pericardial sac too. Pericardial sac is a thin sac surrounding heart. Since the cause can only be deciphered by a clinical examination and investigations, it is not feasible to make a diagnosis online.
However, in such a profile, most commonly it is the inflammation of pericardium
and its extension to pleura which is causing pain. Such pains get a bit better if the patients sits and bends forward. A number of drugs are there which can provide excellent relief , once infection is ruled out. I would request you to see your cardiologist and get him examined.