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
-
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 |
-
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 |
-
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'> |
-
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%
