HI, thanks for using healthcare magic
Persistent coughing can result in chest pain
due to inflammation of the muscles and may also be associated with inflammation of the lining of the lung (called pleuritis
Pleuritis can be worse on coughing, laughing or taking a deep breath. This is possible cause of your pain.
Whether the pain is related to pleuritis or the other possibilities of cracked rib or muscle injury
, the treatment would involve the use of anti inflammatory pain killers and cough suppressant.
Pain killers such as one of the following ibuprofen/naproxen/cataflam/aspirin
I hope this helps