Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote pdb

2 views
Skip to first unread message

Gustavo Niemeyer

unread,
Jan 23, 2002, 12:45:34 PM1/23/02
to
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 ]

0 new messages