Skip to main content

Functions to help debugging

Project description

This package contains functions to help debugging :

  • dprint : function that enables to print the name and the value of the input parameter of the function

You can install it through pip :

pip install debugckage

Exemples of use :

>>> from debugckage import dprint
>>>
>>> var1 = 10.0
>>> dprint(var1)
var1 : 10.0

>>> from debugckage import dprint
>>>
>>> def test():
>>>     """
>>>         test function
>>>     """
>>>
>>>     var2 = "a"
>>>     dprint(var2)
>>>
>>> test()
var2 = "a"

>>> from debugckage import dprint
>>>
>>> class Test():
>>>     """
>>>         test class
>>>     """
>>>
>>>     def __init__(self):
>>>         """
>>>             class constructor
>>>         """
>>>
>>>         self.var3 = 45
>>>
>>>     def test_method():
>>>         """
>>>             test method
>>>         """
>>>
>>>             dprint(self.var3)
>>>
>>> t = Test()
>>> t.test_method()
[ class instance is : "t" ] self.var3 = 45

The code has been developped under Python 3.7 ans is under the WTFPL license.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Files for debugckage, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size debugckage-1.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size debugckage-1.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page