Skip to main content

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.py

    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

Video Example

Support

  • Python 2.7+, Python 3.x
  • Windows, Linux

author

Hadi Cahyadi

Buy Me a Coffee

Donate via Ko-fi

Support me on Patreon

Metadata

Release files for pydebugger 0.86

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydebugger 0.86
File Size Uploaded
pydebugger-0.86.tar.gz 31.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydebugger 0.86
File Interpreter ABI Platform
pydebugger-0.86-py3-none-any.whl Python 3 none any Details

Total release size: 69.3 kB

Release files / pydebugger-0.86.tar.gz

Download URL pydebugger-0.86.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7ee16effd2385a6066f41634585051f9f045184cdfa15da14acd31d9cf0e2992
BLAKE2b-256 checksum
How to use checksums
a145afed434e46eebfe1aeb97ce8179a814b1097fe089e1994bbbf4498229135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / pydebugger-0.86-py3-none-any.whl

Download URL pydebugger-0.86-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c624b29dbc5c1d6aa4bc328a6cad7282bae463ee5a408190d8010e2986ed873a
BLAKE2b-256 checksum
How to use checksums
cd00fa0dbb6d13c2632cbb8c94164759fdb6cb382fd2cae88e8b122983762f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.86 This release

2 release files

0.84

2 release files

0.81

2 release files

0.80

2 release files

0.79

2 release files

0.78

2 release files

0.76

2 release files

0.74

2 release files

0.73

2 release files

0.72

2 release files

0.71

1 release file

0.70

2 release files

0.67

2 release files

0.66

2 release files

0.65

2 release files

0.63

2 release files

0.62

2 release files

0.61

2 release files

0.60

2 release files

0.58

2 release files

0.57

2 release files

0.55

2 release files

0.54

2 release files

0.53

2 release files

0.52

2 release files

0.51

2 release files

0.50

2 release files

0.49

2 release files

0.48

2 release files

0.47

2 release files

0.46

2 release files

0.45

2 release files

0.44

2 release files

0.43

2 release files

0.42

2 release files

0.41

2 release files

0.40

2 release files

0.39

2 release files

0.37

2 release files

0.36

2 release files

0.35

2 release files

0.34

2 release files

0.33

2 release files

0.32

2 release files

0.31

2 release files

0.29

1 release file

0.28

1 release file

0.25

1 release file

0.24

1 release file

0.23

1 release file

0.22

1 release file

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page