Skip to main content

pdb wrapper with remote access via tcp socket

Project description

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpdb-0.1.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpdb-0.1.1.win32.exe (63.4 kB view details)

Uploaded Source

File details

Details for the file rpdb-0.1.1.tar.gz.

File metadata

  • Download URL: rpdb-0.1.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rpdb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b4d9c5230733424183f5bd6ce68912aca86e5ab40b33656afc1addb9a957d0b3
MD5 4175066bf5b202fafb2312d331a58a03
BLAKE2b-256 f7a22144e780572687955f693eb674a0ad075a3d9989a92f6671b610781ebf4d

See more details on using hashes here.

File details

Details for the file rpdb-0.1.1.win32.exe.

File metadata

  • Download URL: rpdb-0.1.1.win32.exe
  • Upload date:
  • Size: 63.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rpdb-0.1.1.win32.exe
Algorithm Hash digest
SHA256 01780496a84004a4ec5f9cf0aa6457f4c28e6e3d046f7b0687cde880ae6bd9c5
MD5 f82b3426b679384f24d983bd8b6cd437
BLAKE2b-256 b77d044c70a4f974da5f5fc77ace9d890cd7b32ccc80c19687abe4b8f3b6aa75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page