Giter Site home page Giter Site logo

debug's Introduction

Debugger

Simple debugger Python to show colored text in command prompt.

Installation

pip install git+https://github.com/IlanOu/Debug.git

Examples

Import the library

from debug import Debug, Style

Debug

# Basic
Debug.Log("Hello World !")
# Debugging
Debug.LogError("Hello World !")
Debug.LogWarning("Hello World !")
Debug.LogSuccess("Hello World !")
Debug.LogWhisper("Hello World !")
# Custom
Debug.LogColor("Hello World !", Style.RED + Style.BOLD)
# Separators
Debug.LogSeparator() 
Debug.LogSeparator("Separator") 
Debug.LogSeparator("Separator", Style.BOLD)

Debug.LogFatSeparator("Separator")  
Debug.LogFatSeparator("Separator", Style.BOLD)

You have parameters for the debugger

To enable/disable if the Debug.LogError is blocking

Debug.blocking = False

To enable/disable emojis

Debug.emojisActive = False

To enable/disable the prefix

Debug.prefixActive = False

To enable/disable all Debug.LogWhisper

Debug.verbose = False

Style

The Style can be used in some Debug methods (ex: Debug.LogColor("Hello", Style.RED)).

print(Style.WARNING + "WARNING !!!" + Style.ENDC)

print(Style.BLUE + "Blue text" + Style.ENDC)

print(Style.UNDERLINE + "Underline text" + Style.ENDC)

print(Style.UNDERLINE + Style.BLUE + "Blue and underline text" + Style.ENDC)

debug's People

Contributors

ilanou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.