Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

here-debugger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

here-debugger

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

  • 2.0.0
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc