In a manner that causes physical pain or discomfort. She painfully twisted her ankle while hiking on the rocky trail.
In a way that causes mental or emotional distress. He was painfully aware of his shortcomings during the interview.
To an extreme or excessive degree. The instructions were painfully detailed, making the process longer than necessary.