How did doctors perform surgery before modern anesthesia?

The history of anesthesia in surgery was grisly, painful and occasionally very dubious.

How did doctors perform surgery before modern anesthesia?
The history of anesthesia in surgery was grisly, painful and occasionally very dubious.