3 ms·
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.s
by est 13y 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.