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.
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_debugger a = 2 b = "Bibhash" here_debugger(a, b)
Output:
Line-4: a = 2 | b = Bibhash |
-
Add search text:
from here_debugger.debug import here_debugger a = 2 b = "Bibhash" here_debugger(a,b, custom_arguments="Debug-")
Output:
Debug-:Line-4: a = 2 | b = Bibhash |
-
Print variable type information:
from here_debugger.debug import here_debugger a = 2 b = "Bibhash" c = [2,2] d = {} here_debugger(a,b,c,d, custom_arguments="Debug-", include_types=True)
Output:
Debug-: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_debugger a = 2 "Bibhash" here_debugger(a,b, custom_arguments="Debug-")
Output:
Debug-:Line-4: a = 2 | Bibhash |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file here_debugger-1.0.1.tar.gz
.
File metadata
- Download URL: here_debugger-1.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d81003c58cdb6d1ac5e82212fa1b10eb2a103f33c929665ff75e1fff0845f4f8 |
|
MD5 | 5548f0e8dfbe42816b3fbc24b28a2a90 |
|
BLAKE2b-256 | 21ce4a821b55c88a10bea544a338bd6fb00c43a43a43d889e8696c7269c23d03 |
File details
Details for the file here_debugger-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: here_debugger-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3771cd70d5a4fa1ade907545bd38b36bd02dfdc3a57c3cf97b0da9988e85ceba |
|
MD5 | 6c894a86373a2125e4c6a6833bacdb31 |
|
BLAKE2b-256 | 7371ea61baed549081b480a3c0b45160fe6ded912145a56f8c994b704a1cf655 |