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.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-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghostdebug-0.1.1.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.tar.gz
Algorithm Hash digest
SHA256 357e3d2a767024b6edd6c54613a19ef2bfbb309e6a8c6a251d81ee13e32c828a
MD5 bc4870f853646504d452949d59d02d56
BLAKE2b-256 4f87a637f55f0cd7578550d9debe9f5ce303484d8b94415d0698fa2cfce97054

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghostdebug-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for ghostdebug-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 642fae5e7ad717c0b88ec18d4765595c2c2b15a835829b3fb2453ac6b55c00ee
MD5 f2eb1da928a02e90d43032e71622bfe0
BLAKE2b-256 86db3d8d27f83bdaeb1ae2a495e7c1f08cf7dd546034da01a1382862044de69e

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