Skip to main content

A user friendly debugger, just like print statement, but much more.

Project description

Here-Debugger

This user-friendly debugger simplifies the debugging process by accepting any number of variables and printing their names, values, and line numbers. It also offers options to add search text and include variable type information for enhanced clarity.

Pypi: https://pypi.org/project/here-debugger/

Features:

  • Prints variable names and values
  • Displays line number of the variables
  • Option to add search text
  • Option to include variable type information

Installation

To install the debugger, use: pip install here-debugger

Usage

  1. Print variable names and values.

    from here_debugger.debug import here_debug
    a = 2
    b = "Bibhash"
    here_debug(a, b)
    

    Output: File: <current_file>: Line-4: a = 2 | b = Bibhash |

  2. Add search text:

    from here_debugger.debug import here_debug
    a = 2
    b = "Bibhash"
    here_debug(a,b, custom_search_text="Debug-")
    

    Output: Debug-: File: <current_file>: Line-4: a = 2 | b = Bibhash |

  3. Print variable type information:

    from here_debugger.debug import here_debug
    a = 2
    b = "Bibhash"
    c = [2,2]
    d = {}
    here_debugger(a,b,c,d, custom_search_text="Debug-", include_types=True)
    

    Output: Debug-: File: <current_file>: Line-6: a = 2, type = <class 'int'> | b = Bibhash, type = <class 'str'> | c = [2, 2], type = <class 'list'> | d = {}, type = <class 'dict'> |

  4. Update: Now supports constants:

    from here_debugger.debug import here_debug
    a = 2
    here_debug(a,"Bibhash", custom_search_text="Debug-")
    

    Output: Debug-: File: <current_file>: Line-4: a = 2 | Bibhash |

Test Case Coverage: 98%

here-debugger-coverage-report.png

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

here_debugger-2.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

here_debugger-2.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file here_debugger-2.0.0.tar.gz.

File metadata

  • Download URL: here_debugger-2.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for here_debugger-2.0.0.tar.gz
Algorithm Hash digest
SHA256 57826675bddd3733a7e9f0ca78ae5a4816a4f0bc7ebf9590202cd403c5e7dd1e
MD5 88f24365af95c506059b8b254e582272
BLAKE2b-256 cbe10a629733955ea095d56c6b5cc63ce650f84f14dfa85c3b2ae2a941434770

See more details on using hashes here.

File details

Details for the file here_debugger-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for here_debugger-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0b5f756b70f0b5b294b665e90120a21449039a73910deabaf85544493cb4a4
MD5 2bdbc81392d6a16debdf1844fdd86718
BLAKE2b-256 95844d90be74a05eab549e5044d70f332df744c111b4673c41509373201af694

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