See Rosemary Kennedy's brain lobotomy (she was the sister of President John F. Kennedy). She was awake and speaking during her brain operation, so doctor could know if he was messing with any important area. "When she began to become incoherent, they stopped."
But of course it was too late. She became mentally impaired for the rest of her life. She was lobotomized because her father though it would improve her teenager behavior problems.
The brain itself doesn't have Nociceptors (pain sensory neurons), so there is no pain below the skin and meninges area.