I have a maddening bug that makes it look like my code is hanging inside an asyncio.sleep() call. ie. while condition: print("Before Sleep") await asyncio.sleep(0) print("After Sleep") will result in only the Before Sleep being printed once. The function containing this is called multiple times successfully before the failure happens. I'm not asking for help finding the bug in this code (as the issue is clearly elsewhere), but I'd like some idea how I can figure out where this is hanging. Python 3.11, on a Raspberry Pi 5B running Raspberry Pi OS. VSCode with Python/Pylance/Python Debugger/Python Environments extensions. Continue reading...