Registry / devops / web-pdb

web-pdb

JSON →
library2.0.1pypypiunverified

Web interface for Python's built-in PDB debugger. Version 2.0.1 (latest). Allows remote debugging via a web browser. Low release cadence. Supports Python >=3.8.

pip install web-pdb
INSTALL
IMPORT
SIG · WEB-PDB
W
web-pdb
devopspythonv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

set_trace
import web_pdb; web_pdb.set_trace()
import web_pdb.set_trace
set_trace is a function inside the module, not a submodule.

Insert web_pdb.set_trace() where you want to break. Then run your script. Open http://localhost:5555 in a browser.

import web_pdb def my_function(): x = 10 web_pdb.set_trace() # Opens a web debugger at http://localhost:5555 y = x + 5 print(y) my_function()
Debug
Known issues
gotchaweb-pdb starts a new thread for the HTTP server each time set_trace() is called. Avoid calling set_trace() inside loops or frequently called functions; it will spawn many threads.
fix
Use a conditional breakpoint: if condition: web_pdb.set_trace()
affects: all
gotchaThe web interface only works on localhost by default. If you need remote access, you must set the host manually.
fix
Use web_pdb.set_trace(host='0.0.0.0') to bind to all interfaces. Be aware of security implications.
affects: all
deprecatedIn version 2.0.0+, importing web_pdb directly (import web_pdb) is the correct pattern. Older examples show 'from web_pdb import set_trace' which still works but is less explicit.
fix
Use 'import web_pdb; web_pdb.set_trace()'.
affects: >=2.0.0
breakingStarting with version 2.0.0, web-pdb no longer supports Python 2. Only Python >=3.8.
fix
Ensure your environment uses Python 3.8 or newer.
affects: >=2.0.0
Upgrade
Version history
2.0.1latest on PyPI · released May 21, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Amazon
1
Resources
web-pdb — pip install web-pdb · libregistry