我对Python还是个新手。我有两个相互通信的脚本在运行,但是一旦发送方进程停止发送字节,接收方进程就会收到源源不断的解码(UTF-8)到新行的内容。为了简单起见,我已经尽可能地减少了代码:for data in data_to_send: c.sendall(message)
接收方Python脚本。理想情况下,如果
目前我知道我可以这样做:然后手动设置断点,使用:(Pdb) break 2(Pdb) breakpdb.set_trace() (or with ipdb.set_trace()
在不同的行中(这是由像vim中的python# note: break points from python-mode in