我正在尝试使用 pudb 进行多处理调试,但遇到如下错误:
代码:
def worker():
i = 0
while i < 10:
pudb.set_trace()
i = i + 1
time.sleep(1)
if __name__ == '__main__':
p1 = multiprocessing.Process(target=worker)
p1.start()
错误:
File "/usr/local/lib/python2.7/dist-packages/urwid/raw_display.py", line 545, in _getch
return ord(os.read(self._term_input_file.fileno(), 1))
TypeError: ord() expected a character, but string of length 0 found
有谁知道这个问题?