Open Honghe opened 5 years ago
The "o" key for "view output" should probably just be disabled during remote/telnet debugging (since you're already seeing the program output somewhere else).
May I ask where to see the print
stdout output? I don't see the subprocess output in the main process stdout. Thanks!
Are you meaning to use remote debugging at all? It seems like you're confused. Try from pudb import set_trace
.
Env:
-- coding: utf-8 --
from multiprocessing import Process import os from pudb.remote import set_trace
def info(title): print(title) set_trace() print('module name:', name) print('parent process:', os.getppid()) print('process id:', os.getpid())
def f(name): info('function f') print('hello', name)
if name == 'main': info('main line') p = Process(target=f, args=('bob',)) p.start() p.join()
% python -m pudb.run demo_multiprocess.py main line pudb:6899: Please telnet into 127.0.0.1 6899. pudb:6899: Waiting for client...
pudb:6899: Now in session with 127.0.0.1:37918.