Skip to main content

A collection of useful debugging tools

Project description

PythonDebuggerTools

This is a collection of useful debugging tools to make your python development process faster.

Installation

Use the package manager pip to install PythonDebuggerTools-0.0.16

pip install PythonDebuggerTools

Usage

Using the Debug.logger decorator

from PythonDebuggerTools.logger import Debug

D = Debug()
D.DEBUG = True

@D.logger(important_params=['x', 'y'])
def add(x, y):
    return x + y

Logger Key-word arguments

  • important_params
    • a python list of paramaters to print in the standard output

Using the Log module

from PythonDebuggerTools.logger import Log

f1_log = Log()
f1_log.DEBUG = True

f2_log = Log()
f2_log.DEBUG = False

def f1(a):
    # code that executes
    f1_log.log("Debug statements for function f1 that are printed")
    #continue execution of code

def f2(x, y):
    # code that executes
    f2_log.log("Debug statements for function f2 that are not printed!")

Contribution Guidelines

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Github Repository

PythonDebuggerTools Github Repository

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

PythonDebuggerTools-0.0.17.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

PythonDebuggerTools-0.0.17-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file PythonDebuggerTools-0.0.17.tar.gz.

File metadata

  • Download URL: PythonDebuggerTools-0.0.17.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for PythonDebuggerTools-0.0.17.tar.gz
Algorithm Hash digest
SHA256 9c7529c3d562477f500b107fc3f96770b4fcb15f8945bc70359b28ee34af8859
MD5 1eedba46b2d059de2dfd98933045e9af
BLAKE2b-256 d08b66841c9604dac12f2fb4579dd1d37379eb9d55e6cd2b10dc54fc144006de

See more details on using hashes here.

File details

Details for the file PythonDebuggerTools-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: PythonDebuggerTools-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for PythonDebuggerTools-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 f547948f13e54bab2c3a7b9aa83c9f18d82ba3fcdfdaab844c327722f03e76a9
MD5 b9759c0e16fe430cbaf9c9abb1204b10
BLAKE2b-256 d8160ee1dd862ee030820ae288ef4ddc198325e47a0966ce3e684f59a15df9ef

See more details on using hashes here.

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