inducer / pudb

Full-screen console debugger for Python
https://documen.tician.de/pudb/
Other
2.94k stars 226 forks source link

export PUDB_TTY=... not working #634

Closed ElBartel closed 3 weeks ago

ElBartel commented 7 months ago

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.

inducer commented 3 weeks ago

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