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
  • output_file
    • a string containing the name of the file to redirect debugging messages to

Using the Log module

from PythonDebuggerTools.logger import Log

info = Log()
info.DEBUG = True

f2_log = Log()
f2_log.DEBUG = False

def f1(a):
    # code that executes
    info.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.18.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

PythonDebuggerTools-0.0.18-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PythonDebuggerTools-0.0.18.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for PythonDebuggerTools-0.0.18.tar.gz
Algorithm Hash digest
SHA256 766eea095770fd6a02dcbf1d91961cace8110dffd57c0812e21ec67d11168399
MD5 7e1fc69583304958fd304e77ec11de97
BLAKE2b-256 057f5491ab677f92e339a2feae4571c0e53064dbbffa52d00345969cb0fa5865

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PythonDebuggerTools-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 3c7fad96d931187bdc7377ae2068cf5cc131bef6e105586f45c26928334eedb9
MD5 5374d71474f7e8d88d6782b7d061de1a
BLAKE2b-256 0356bb92ad483acf5528da2beab078e35063ffab3dca258b75b837b43aeead51

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