Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydebugger-0.86.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydebugger-0.86-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file pydebugger-0.86.tar.gz.

File metadata

  • Download URL: pydebugger-0.86.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pydebugger-0.86.tar.gz
Algorithm Hash digest
SHA256 7ee16effd2385a6066f41634585051f9f045184cdfa15da14acd31d9cf0e2992
MD5 d47abf396b51def1aa8d7de35a12b015
BLAKE2b-256 a145afed434e46eebfe1aeb97ce8179a814b1097fe089e1994bbbf4498229135

See more details on using hashes here.

File details

Details for the file pydebugger-0.86-py3-none-any.whl.

File metadata

  • Download URL: pydebugger-0.86-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pydebugger-0.86-py3-none-any.whl
Algorithm Hash digest
SHA256 c624b29dbc5c1d6aa4bc328a6cad7282bae463ee5a408190d8010e2986ed873a
MD5 d691883a36242f3ea06059ab033ea71f
BLAKE2b-256 cd00fa0dbb6d13c2632cbb8c94164759fdb6cb382fd2cae88e8b122983762f6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page