I\'m tired of inserting
import pdb; pdb.set_trace()
lines into my Python programs and debugging through the console. How do I connect a rem
A little bit late, but here is a very lightweight remote debugging solution courtesy of http://michaeldehaan.net/post/35403909347/tips-on-using-debuggers-with-ansible:
pip install epdb on the remote host.epdb defaults to listening on any address (INADDR_ANY), not 127.0.0.1.import pdb; pdb.set_trace() in your program, use import epdb; epdb.serve().epdb.connect() uses telnet.python -c 'import epdb; epdb.connect()'.Adjust the security bits to suit your local network setup and security stance, of course.