Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coroutine debugging tools #2312

Open
IsaacKhor opened this issue Oct 10, 2024 · 0 comments
Open

Coroutine debugging tools #2312

IsaacKhor opened this issue Oct 10, 2024 · 0 comments

Comments

@IsaacKhor
Copy link

I've been using the coroutine functions, and can't help but notice that debugging coro code is a disaster. Pointers towards doing the following would be good:

  • Looking at a coroutine backtrace with the ability to inspect each "stack frame" (inspect local variables, function arguments, etc) (gdb bt/up/down/frame <x>/info locals equivalents)
  • Looking at all the pending async tasks (gdb info threads/thread <x> equivalent)

The current co_bt.py script just shows a backtrace without the ability to inspect any of the frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@IsaacKhor and others