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

export PUDB_TTY=... not working #634

Closed
ElBartel opened this issue Jan 28, 2024 · 1 comment
Closed

export PUDB_TTY=... not working #634

ElBartel opened this issue Jan 28, 2024 · 1 comment
Labels

Comments

@ElBartel
Copy link

ElBartel commented Jan 28, 2024

Diverting the debugger interface to a diffent tty by setting the PUDB_TTY environment variable does not work.

Simply try:
touch any-script.py; PUDB_TTY=$(tty) python -mpudb any-script.py

This results in a ValueError: I/O operation on closed file. exception.

This is due to calling tty_file.close() in _get_debugger() introduced in Close tty file when dne querying terminal info)
The prolblem is not present, when this call does not happen.

@ElBartel ElBartel added the Bug label Jan 28, 2024
@inducer
Copy link
Owner

inducer commented Aug 18, 2024

Probably fixed by #656. Let me know if that's not the case.

@inducer inducer closed this as completed Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants