A thoracotomy is when a surgeon goes between your ribs to get to your heart, lungs, or esophagus to diagnose or treat an illness. It's a major operation, and doctors usually don’t use it if something ...