Not that obscure but I recently started doing "xeyes debugging".
We have so many debug logs that trying to find your log of a background task, takes a non zero amount of time.
So just inserting system("xeyes"); is actually way easier, to get instant feedback, and you can just use system("xmessage msg"), if you need a message.