Time-travel debugger and visualization toolkit for Python
Project description
pydebugviz v1.0.0
Visual Time-Travel Debugging for Python
Trace everything. Watch everything. Export everything.
Overview
pydebugviz captures your Python function’s execution step-by-step and lets you explore it in:
- Jupyter
- Terminal (CLI)
- IDEs
Now in v1.0.0:
- ✅
DebugSessioninteractive navigator - ✅
live_watch()for real-time variable display - ✅
show_summary()for CLI/Jupyter-friendly overview - ✅
export_html()for trace visualization - ✅ Validation tools, safe evaluation, and large var protection
Installation
pip install pydebugviz
Feature Matrix
| Feature | Jupyter | CLI | IDE |
|---|---|---|---|
debug() |
✅ | ✅ | ✅ |
DebugSession |
✅ | ✅ | ✅ |
show_summary() |
✅ | ✅ | ✅ |
export_html() |
✅ | ✅ | ✅ |
live_watch() |
✅ | ✅ | ✅ |
validate_trace() |
✅ | ✅ | ✅ |
Quick Start
from pydebugviz import debug, show_summary
def test():
x = 0
for i in range(4):
x += i
return x
trace = debug(test, breakpoints=["x > 3"], max_steps=100)
show_summary(trace)
Interactive DebugSession
from pydebugviz import DebugSession
session = DebugSession(trace)
session.jump_to(3)
print(session.current())
session.show_summary()
Live Watch Mode
from pydebugviz import live_watch
def my_function():
x = 1
for i in range(3): x += i
live_watch(my_function, watch=["x", "i"], interval=0.1)
Export HTML
from pydebugviz import export_html
export_html(trace, filepath="trace_output.html")
Validation + Safe Eval
from pydebugviz import validate_expressions, safe_eval
print(validate_expressions(["x > 3", "bad =="])) # syntax check
print(safe_eval("x > 5", {"x": 7})) # safely evaluate
Trace Schema Enforcement
from pydebugviz import normalize_trace, check_trace_schema
normalized = normalize_trace(trace)
issues = check_trace_schema(normalized)
print("Schema issues:", issues)
License
MIT License
(c) 2025 pydebugviz contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydebugviz-1.0.0.tar.gz
(6.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
File details
Details for the file pydebugviz-1.0.0.tar.gz.
File metadata
- Download URL: pydebugviz-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b336125d9324638622023afc1648197b8c3b581c24e4e07d8a04abb56918c9b5
|
|
| MD5 |
849bb370a276adca986b555957ceaa44
|
|
| BLAKE2b-256 |
e7c21cebf5df012d81eff67798f132c7dd1b94dc23acdd0940ef10f532d3f9af
|
File details
Details for the file pydebugviz-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pydebugviz-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c70b1cb91274893223437e50b99136c78413688ef48d91a5cd28ec474b474071
|
|
| MD5 |
86e01195608974e601a2880289970c3f
|
|
| BLAKE2b-256 |
72a4fde2d3f51a20181473d92a7f8e04b95d42bb64fd910940aa9137b4ea6ba2
|