A lightweight distributed debugger built on top of ipdb.
Project description
dpdb
dpdb is a lightweight distributed debugger built on top of ipdb.
Release Notes
- 1.0.0: first public release version.
- single-process debugging
- distributed command broadcast
- file-based synchronization for non-
torch.distributedscenarios - a built-in web UI
- switching between web and terminal modes during a session
Install
pip install .
Quick Start
import dpdb
def train():
for step in range(10):
if step == 5:
dpdb.set_trace()
Run a script directly:
python -m dpdb your_script.py
Demo
The standalone repository ships with runnable examples under demo/:
python demo/demo_dpdb.py --mode single
python demo/demo_dpdb.py --mode file
python demo/demo_dpdb.py --mode torch
There is also a helper launcher for the torch demo:
bash demo/launch_dpdb.sh
Notes
torchis optional and only required when you usesync_method='torch'.- The web UI template is packaged with the wheel and works with
pip install ..
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.0.0.tar.gz
(30.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mpdb-1.0.0-py3-none-any.whl
(28.1 kB
view details)
File details
Details for the file mpdb-1.0.0.tar.gz.
File metadata
- Download URL: mpdb-1.0.0.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95ab188c59175a834034e043789030bdbc68895a1b6d62b9f266b7bf9b1a064c
|
|
| MD5 |
4d79b97db799faebf1e5d1fece0af024
|
|
| BLAKE2b-256 |
f3bbbfa76edb3b00c5801c1d099e0a077934e08b0b85af11866bf829ab12dc49
|
File details
Details for the file mpdb-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mpdb-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79fcd48b887b009476f9dd291b8568a4dc52844f7cac9b74e26f07ad6078d9da
|
|
| MD5 |
f848b0d8a504e8f4bb1d111a2a376869
|
|
| BLAKE2b-256 |
819893da5ead003bcf0571b4ac0c2975eb06f91e8166804487cd76cb3bf606b6
|