|
|
|
|
|
by est
4586 days ago
|
|
remote debugging with pdb+socket 1. first listen to a socket with nc -l -U 1.sock 2. Add this to your python script. import socket, pdb
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect('1.sock')
f = s.makefile()
pdb.Pdb(stdin=f, stdout=f).set_trace()
raise wtf
3. now debug in nc. enjoy. |
|