Skip to main content

A client for the RemotePDB debugger

Project description

RemotePDB Client

A client for debugging code instrumented with the RemotePDB package

The RemotePDB package is a useful way to remotely debug code (i.e., code running in Docker). Normally, a user can simply wait for the set_trace() command to be executed, then telnet to the appropriate port. However, in applications such as Django, this necessitates manually disconnecting the telnet session before another breakpoint can be processed.

With RemotePDB Client, the user can instantiate the client at any time, and it will pend until a debug connection becomes available. Likewise, after a PDB c(ontinue) command the client will disconnect internally and await the next available connection.

You can use h(elp) within the debugger to see the usual remote commands. q(uit)/e(xit) will forward the given command and then exit the Client completely.

A persistent history is available and is saved for re-use between client sessions.

The cl(ear) breakpoints command is disallowed if it has no arguments (clearing all breakpoints causes the remote process to pend on y/n input).

If you are debugging code in a Docker container, remember to expose the internal port externally via your docker-compose command or file (keeping in mind that the internal and external port numbers should be different).

There is a limit to what you can debug with this - if you call set_trace() within code running in multiple threads/processes at the same time, only one will be connected to and the rest will pend or fail.

To avoid problems with BdbQuit being raised by RemotePDB 2.0+ on remote disconnect, before exiting via Ctrl-C, exit, or quit we purposely send a "continue" command.

Disclaimer

DO NOT use RemotePDB Client to connect to untrusted hosts!

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

remote_pdb_client-1.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file remote_pdb_client-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: remote_pdb_client-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.8

File hashes

Hashes for remote_pdb_client-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c76f8d6716fdb8e48823d254ea61d85c9f3cdc2d8d4a2204481c0a517a2e85b8
MD5 4f3eea7a34407cd1b9fd0801f2c59d49
BLAKE2b-256 6b082f2116899e583a57adafafebdeb61d99379714d57f44457caacce5cc3863

See more details on using hashes here.

Supported by

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