Skip to main content

A lightweight distributed debugger built on top of ipdb.

Project description

mpdb

mpdb (Multiprocess PDB) is a lightweight distributed debugger built on top of ipdb.

Note: This project was formerly known as dpdb. The dpdb package name on PyPI was already taken, so it has been renamed to mpdb. Both import mpdb and import dpdb are supported with identical functionality.

Release Notes

  • 1.1.0: rename from dpdb to mpdb.
    • PyPI package name dpdb was already taken, renamed to mpdb (Multiprocess PDB).
    • Full backward compatibility: both import mpdb and import dpdb work identically.
    • pip install mpdb is the recommended installation method.
  • 1.0.0: first public release version.
    • single-process debugging
    • distributed command broadcast
    • file-based synchronization for non-torch.distributed scenarios
    • a built-in web UI
    • switching between web and terminal modes during a session

Install

pip install mpdb

Quick Start

import mpdb

def train():
    for step in range(10):
        if step == 5:
            mpdb.set_trace()

Run a script directly:

python -m mpdb your_script.py

Demo

The standalone repository ships with runnable examples under demo/:

python demo/demo_mpdb.py --mode single
python demo/demo_mpdb.py --mode file
python demo/demo_mpdb.py --mode torch

There is also a helper launcher for the torch demo:

bash demo/launch_mpdb.sh

Notes

  • torch is optional and only required when you use sync_method='torch'.
  • The web UI template is packaged with the wheel and works with pip install mpdb.
  • Both import mpdb and import dpdb are supported and behave identically.

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

mpdb-1.1.0.tar.gz (30.9 kB view details)

Uploaded Source

Built Distribution

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

mpdb-1.1.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file mpdb-1.1.0.tar.gz.

File metadata

  • Download URL: mpdb-1.1.0.tar.gz
  • Upload date:
  • Size: 30.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mpdb-1.1.0.tar.gz
Algorithm Hash digest
SHA256 32ae97d147c47035a1992c41de5e3f727d085229fce7bbfe5e34fb400340fc7c
MD5 0af9ee91833b5331c4ce937a8d00b9d5
BLAKE2b-256 a9743e8d0627256a79a50e521f43ac6786dc61c20c0b263c4df866e032df36ce

See more details on using hashes here.

File details

Details for the file mpdb-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mpdb-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mpdb-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41ea636cdbdafe13d7d9fe3fb10a748e11ccaa84cf3eb4731465455448cf34dd
MD5 875a046ead60da620e0a6314c30a49a2
BLAKE2b-256 57693adafc7ec409e07a297af60333e29e3609ab78d3f7cd2ab6f05fd3029a40

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