Print objects with inspection details and color.
Project description
pydebugger
Print objects with inspection details and color.
Installing
Install and update using pip
$ pip install pydebugger
pydebugger supports Python 2 and newer, Python 3 and newer, and PyPy.
Example
What does it look like? Here is an example of a simple pydebugger program:
# hello.pytra
from pydebugger.debug import debug
debug(variable1="data1", debug=True)
And what does it look like when it's run and printed in color:
$ python hello.py
2024:09:12~18:21:45:822673 C:\TEMP\hello.py -> variable1: data1 -> TYPE:<class 'str'> -> LEN:5 -> [C:\TEMP\hello.py] [3] PID:21428
You can set OS Environment variable DEBUG=1 or DEBUG=True to avoid having to use the parameter "debug=1" or "debug=True"
from pydebugger.debug import debug
debug(variable1="data1")
you can run "debug.py" to provide a debug server with client support using environment variables:
# on terminal
export DEBUG_SERVER=1
export DEBUGGER_SERVER=127.0.0.1:50001
# then run hello.py
this will send all info to debug server running on '127.0.0.1' on port 50001
You can also run the debug server on a specific port number:
$ debug.py 50005
Support
- Python 2.7+, Python 3.x
- Windows, Linux
author
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 Distributions
Built Distributions
Hashes for pydebugger-0.72-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc57614f6530195a14385c9c5607d3cf64d0f71748777119349f871056f4088b |
|
MD5 | ce6804fc54ae9abd8fa0df0f62ff5817 |
|
BLAKE2b-256 | 53996d903220252f80de79e9db3a6690224eb3220f263f099c04c76ed77e8920 |
Hashes for pydebugger-0.72-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a184d2e1da216f1a8041ff21f47959ed6d2f25b3bdb759da2673e05516afc8 |
|
MD5 | 62d93166264e07e4abec7a4fda16f337 |
|
BLAKE2b-256 | 656dac0dcf25ec97221521b2e3492f143433f12d9cbc19dd8c16de84ec10f1e2 |