Skip to main content

A simple backend debugger for python inspired by Unity's Debug system

Project description

ghostdebug

Have you ever wanted to use Unity's Debug class in Python? Now it's possible

INSTALLATION

pip install ghostdebug

USAGE

First,import required classes:

from ghostdebug import Debug
from ghostdebug.filter import Type,Filter

Then,create logs with different types:

Debug.Log("Number = 7",Type.Info)
Debug.Log("Wrong input detected",Type.Warn)
Debug.Log("An error detected",Type.Error)
Debug.Log("Can't divide by zero",Type.Error_Info)

Note: If you use an undefined type,the program will raise:

TypeException : Type 'used_type' is not defined

display all logs in console:

Debug.Show(Filter.All)

The output will:

[INFO]:Number = 7
[WARN]:Wrong input detected 
[ERROR]:An error detected
[ERROR INFO]:Can't divide by zero

For save logs automatically named as log1.txt,log2.txt etc:

Debug.Save_Log()

The file location will:

On windows:

C:\\Users\\USER_NAME\\Debug Logs

On linux:

/home/USER_NAME/Debug Logs

On MacOS:

/Users/USER_NAME/Debug Logs

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

ghostdebug-0.1.1.post1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghostdebug-0.1.1.post1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ghostdebug-0.1.1.post1.tar.gz.

File metadata

  • Download URL: ghostdebug-0.1.1.post1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ghostdebug-0.1.1.post1.tar.gz
Algorithm Hash digest
SHA256 b95bdc6abf4cde448cdbe038aa00e626a3d8f1718da5709e1ca1a97849a77029
MD5 50cf43486930a890bd8d602f8b59d6f6
BLAKE2b-256 d7968a913ee43b055deadb49757457ce10dab9d8d4471039ef58ba5af7dba80f

See more details on using hashes here.

File details

Details for the file ghostdebug-0.1.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for ghostdebug-0.1.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 921e20cf8fea942a28329ccf149d528ed0d27260dd86101f172783b5ac0ced0f
MD5 60d500bbc11419cc63732ab37388c93f
BLAKE2b-256 87de2d0e0fe6ff94f9c5681a39b9318ca77b15766ecb7d580e72770f98f16410

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page