Report stacks for suspended asyncio tasks
godlygeek opened this issue · 0 comments
godlygeek commented
Add a new command line switch to ask pystack to try to find suspended asyncio tasks and print their stacks. It would do this by finding and walking the CPython implementation's linked list of Python objects to find all asyncio tasks, identify the coroutine wrapped by each one, and finding the most recent stack frame of that coroutine.
This is probably quite a tricky change, but would be a very cool feature.