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 and Python 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/

References:

Metadata

Release files for rpdb 0.1.1

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.1
File Size Uploaded
rpdb-0.1.1.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpdb 0.1.1
File Interpreter ABI Platform
rpdb-0.1.1.win32.exe Details

Total release size: 65.5 kB

Release files / rpdb-0.1.1.tar.gz

Download URL rpdb-0.1.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4d9c5230733424183f5bd6ce68912aca86e5ab40b33656afc1addb9a957d0b3
BLAKE2b-256 checksum
How to use checksums
f7a22144e780572687955f693eb674a0ad075a3d9989a92f6671b610781ebf4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rpdb-0.1.1.win32.exe

Download URL rpdb-0.1.1.win32.exe
Size 63.4 kB
Tags Source
SHA-256 checksum
How to use checksums
01780496a84004a4ec5f9cf0aa6457f4c28e6e3d046f7b0687cde880ae6bd9c5
BLAKE2b-256 checksum
How to use checksums
b77d044c70a4f974da5f5fc77ace9d890cd7b32ccc80c19687abe4b8f3b6aa75
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

0.1.3

1 release file

0.1.2

1 release file

This release

0.1.1 This release

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