An eye doctor can diagnose computer vision syndrome through a comprehensive eye examination, which includes testing the patient’s visual function specifically for a distance associated with the computer or digital device use.