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 hashes)

Uploaded Source

Built Distribution

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

Uploaded 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