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.81.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

pydebugger-0.81-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydebugger-0.81.tar.gz
Algorithm Hash digest
SHA256 302b90a573019f71aa4755c33ed00f6aaf4b7db8477e984f44a643ceaffa880e
MD5 7aa430c3668ba2389aef761779d6d9b1
BLAKE2b-256 7dab37303e0c536f846a741f7a8e2b3543886b851dcdd5bfb186667fd30216d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydebugger-0.81-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.81-py3-none-any.whl
Algorithm Hash digest
SHA256 d292c4f6ea70f26fa3545a4d12b7cfcb966d899cc223adf9b4670c2ac6246433
MD5 f1aa3ddd297080240daeb4d59f46e29f
BLAKE2b-256 8f2ae8e14ec3274876e5c9d7d4d31ce30e9b6400af1c658dca16171070415661

See more details on using hashes here.

Supported by

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