Remote pdb

Gustavo Niemeyer niemeyer at conectiva.com
Wed Jan 23 12:45:34 EST 2002


Hello everyone..

I've hacked pdb.py and cmd.py a little bit to allow remote
debugging of python applications. I'm using it in a project
I'm working on, but may be useful for somebody else, so I've
put it at:

http://www.conectiva.com.br/~niemeyer/python/rpdb/

To use it, just initialize it with something like:

rpdb.init(('localhost', 5670))

and then telnet to the specified address. When the debugger
is activated (with rpdb.pm(), rpdb.set_trace(), or anything
else) it will communicate with the connected client instead of
the standard (in|out)put. If there's no clients connected,
it will wait for someone to connect. If you drop your connection,
it should wait for another connection.

If you don't run the rpdb.init() function, or follow it with a
rpdb.kill() call, these modules *should* work like the builtin
ones.

There's no authentication or anything like this. Be
careful. You know, no warranties, etc... ;-)

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20020123/fb0e689c/attachment.sig>


More information about the Python-list mailing list