Skip to main content

print objects with colored with less info

Project description

print objects with colored with less info

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:

from pydebugger.debug import debug

debug(variable1="data1", debug=True)

And what it looks like when run:

$ python hello.py
2019:04:18~13:20:19:286000 <module> -> variable1: data1 -> TYPE:<type 'str'> -> LEN:5 ->  [<FILE DIRECTORY>/test.py] [3] PID:10496

You can set OS Environment DEBUG=1 or DEBUG=True to avoid parameter “debug=True”

from pydebugger.debug import debug

debug(variable1="data1")

or you just run “debug.py” to provider debug server with Client support OS Environment

DEBUG_SERVER=1 DEBUGGER_SERVER=0.0.0.0:50001

Support

  • Python 2.7 +, Python 3.x

  • Windows, Linux

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.35.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

pydebugger-0.35-py2.py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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