inducer / pudb

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

Disable "view output" in remote debug #596

Open guoyejun opened 1 year ago

guoyejun commented 1 year ago

I tried both Python 3.9.5 and 3.9.7, pudb are installed with 'pip install pudb' in the conda env.

Here is my python code

from datetime import datetime
import sys
import time
import os

from pudb.remote import set_trace
set_trace()

if __name__ == "__main__":
    print(' '.join(sys.argv))
    begin = datetime.now()
    print("begin process", os.getpid(), "at", begin.strftime('%Y-%m-%d %H:%M:%S'))

run the python code in one terminal:

$ python try.py
pudb:6899: Please telnet into 127.0.0.1 6899.
pudb:6899: Waiting for client...

and run telnet on another terminal, and press 'o' to check the output, then, I'm unable to return back to pudb UI with 'Enter' or any other keys input. There's nothing new appeared in below no matter which key I press.

$ telnet 127.0.0.1 6899
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Hit Enter to return:

Anything I missed? thanks.

inducer commented 1 year ago

"View output" should probably just be disabled in a remote-debug setting.