RemotePdb 调试python程序
安装RemotePdb
pip install remote-pdb
设置断点
在需要设置断点的地方插入以下代码:
from remote_pdb import RemotePdb
RemotePdb('127.0.0.1', 4444).set_trace()
连接调试
Alternately, one can connect with NetCat: nc -C 127.0.0.1 4444
or Socat: socat readline tcp:127.0.0.1:4444
(for line editing and history support). When finished debugging, either exit the debugger, or press Control-c.