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

IPython shell freezes with remote debugging #521

Open
lucio-aguirre opened this issue Jun 10, 2022 · 2 comments
Open

IPython shell freezes with remote debugging #521

lucio-aguirre opened this issue Jun 10, 2022 · 2 comments

Comments

@lucio-aguirre
Copy link

After enjoying pudb for many years I am trying remote debugging for the first time. Everything works like a charm for me except when I hit ! to drop into an IPython shell. I get the usual >>> prompt but the terminal freezes.

Any ideas on what could be the issue? BTW, I'm running on Debian.

--Lucio Aguirre

P.S.: Thanks for an incredibly useful tool!

@inducer
Copy link
Owner

inducer commented Jun 10, 2022

Good question. I'm not super surprised that this doesn't work. Remote debugging makes use of a fairly hacky, precarious ballet of swapping out stdin and stdout before anyone has a chance to look:

https://github.com/inducer/pudb/blob/dab821fe50bb1c86ddfba703e0cfab5f7572369a/pudb/remote.py#L126=

and

https://github.com/inducer/pudb/blob/dab821fe50bb1c86ddfba703e0cfab5f7572369a/pudb/remote.py#L141=

Depending on where IPython gets its file handles, this could easily go south. It might be possible to get this working. I'd be happy to take a patch!

@lucio-aguirre
Copy link
Author

Thanks for the pointers. I don't have bandwidth left to try to fix this ATM. Hopefully someone more familiar with the domain can give it a shot.

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