What is the meaning of Painfully?

In a painful manner; as if in pain.

Badly; poorly.

Source: wiktionary.org