Skip to main content

Debug support for RPC servers

Project description

Copyright (c) 2010-2011 Ben Bass <benbass@codedstructure.net>

All rights reserved.

About

rpcpdb is a wrapper around the Python pdb debugger which makes it more suitable for use in RPC contexts.

It is designed to fulfil the need to debug a function on an already-running server which uses threads or processes to dispatch each remote procedure call, without having to change the source code to the server in any way. There is no disruption to other clients and rpc calls while the selected call is being debugged.

In particular, a mixin class is provided which adds the debug_func and undebug_func methods to your RPC server. These allow breakpoints to be controlled by another RPC client.

For an example, run the xmlrpc_server.py server process, then run one or more xmlrpc_client.py processes which will continually perform RPC requests against it. xmlrpc_debug.py can then be run to inject a debug breakpoint in a method which the clients are continually calling; the next client to call that function will be remotely debuggable, while other clients carry on oblivious.

Currently the debug interface is provided via a UNIX socket, but this will be extended in future.

RPC framework support is intended to cover XMLRPC, RPyC and Pyro in the initial stages.

Plans

  • Add trigger criteria which check incoming arguments so the user can ensure the right client triggers the breakpoint

  • Update examples, tidy up, document.

  • Support other interfaces than termsock / UNIX socket.

License information

See the file “LICENSE” for information terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.

Changes

0.1
  • first alpha release.

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

rpcpdb-0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file rpcpdb-0.1.tar.gz.

File metadata

  • Download URL: rpcpdb-0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rpcpdb-0.1.tar.gz
Algorithm Hash digest
SHA256 357bb866cc63c8e1b93c9ddb67e577f07c9de7efd1363a9cb1f59c2c562ab453
MD5 3fd44e28e7b4081f929a020b033e36f2
BLAKE2b-256 aef1e550cf201c924d381aac8eb58c84bfb5d0fe5dcc8c2c5d0a5671093727cd

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