Etymology
Today it means: In a distressful way; showing distress Full definition →
From distressful + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.