pydbg 🐛 
pydbg is an implementation of the Rust2018 builtin debugging macro dbg.
The purpose of this package is to provide a better and more effective workflow for people who are "print debuggers".
pip install pydbg
from pydbg import dbg
The old way:
a = 2
b = 3
print(f"a + b after instatiated = {a+b}")
def square(x: int) -> int:
return x * x
print(f"a squared with my function = {square(a)}")
outputs:
a + b after instatiated = 5
a squared with my function = 4
The new (and better) way
a = 2
b = 3
dbg(a+b)
def square(x: int) -> int:
return x * x
dbg(square(a))
outputs:
[testfile.py:4] a+b = 5
[testfile.py:9] square(a) = 4
This project is a work in progress and all feedback is appreciated.
The next features that are planned are:
- Fancy Mode (display information about the whole callstack)
- Performance Optimizations
- Typing information
CONTRIBUTORS:
Thanks to everyone who has submitted an issue or thoughts on this project. Special thanks to those who have submitted a PR to make this project better for everyone:
Metadata
Release files for pydbg 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydbg-0.3.0.tar.gz | 3.5 kB | Without provenance | Details for pydbg-0.3.0.tar.gz |
Release files / pydbg-0.3.0.tar.gz
| Download URL | pydbg-0.3.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7cfc7ab5bcd89bf0eb0ee3e5b428fab8e0172a3a3a9685661b495cbd139d30d
|
|
BLAKE2b-256 checksum How to use checksums |
d7dca25df7e979b8a9096b74047aee8ae204b26a306325ebec53e884a20ed771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7
|
Security for pydbg 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.