Staphyloma is diagnosed through a comprehensive eye examination, which may include imaging techniques like optical coherence tomography (OCT) and ultrasound. These methods help assess the extent of the bulge and any associated retinal changes.