Skip to main content
rpdb - remote debugger based on pdb
==================================

This is essentially a wrapper around pdb that will re-route stdin and stdout to
a socket handler. By default it opens the debugger on port 4444::

import rpdb; rpdb.set_trace()

But you can change that by simply instantiating Rpdb manually::

import rpdb
debugger = rpdb.Rpdb(12345)
debugger.set_trace()

It is known to work on Jython 2.5, Python 2.5 to 3.1. It was written
originally for Jython since this is pretty much the only way to debug it when
running it on Tomcat.

After that your script will "hang" when entering set_trace() and the only
way to get it to continue is to access rpdb using telnet, netcat, etc..::

nc 127.0.0.1 4444

Installation on CPython (standard Python)
-----------------------------------------

python setup.py install

Installation in a Tomcat webapp
-------------------------------

Just copy the rpdb directory (the one with the __init__.py file) in your
WEB-INF/lib/Lib folder along with the standard Jython library (required).

Known bugs
----------
- The socket is now closed properly so you will need to ^C in netcat and ^\
in telnet to exit after a continue.
- For some obscure reason, you will need to run continue twice on Jython.

Author(s)
---------
Bertrand Janin <tamentis@neopulsar.org> - http://tamentis.com/

This is inspired by:

http://bugs.python.org/issue721464
http://snippets.dzone.com/posts/show/7248


0.1.2 (2012-01-26)
==================

- Catch IOError raised by print in initialization, it may not work in some
environments (e.g. mod_wsgi). (Menno Smits)

0.1.1 (2010-05-09)
==================

Initial release.

Metadata

Release files for rpdb 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpdb 0.1.3
File Size Uploaded
rpdb-0.1.3.tar.gz 2.6 kB Details

Release files / rpdb-0.1.3.tar.gz

Download URL rpdb-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4247561686ee9c5f1bb72319378c3b471743d5bdc30611117cb9a75feb34841e
BLAKE2b-256 checksum
How to use checksums
6cfcd0ce515cd01f1a1511ccd057f1f532d9314d26d750abb9255ab356ed80ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page