A lightweight Python debugging library built on decorators
Project description
DecoTrace
A lightweight Python debugging library built on decorators.
Overview
DecoTrace provides a simple, non-intrusive way to debug Python functions. Instead of scattering print statements throughout your code or reaching for a full IDE debugger, you can attach a single decorator to any function and get immediate insight into its execution.
Usage
Apply @decotrace to any function you want to debug:
from decotrace import decotrace
@decotrace
def my_function(x, y):
return x + y
To customize the debugging behavior, pass options to the decorator:
@decotrace(verbose=True)
def my_function(x, y):
return x + y
Options
| Option | Type | Description |
|---|---|---|
verbose |
bool |
Enables detailed output during function execution |
variables |
bool |
Displays variable state during function execution |
Philosophy
DecoTrace is designed to stay out of your way. Add it when you need it, remove it when you don't. No configuration files, no project-wide setup — just a decorator.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file decotrace_debug-1.0.0.tar.gz.
File metadata
- Download URL: decotrace_debug-1.0.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c771c8ab1587a57ce3afd8cb4453e3d5fc46d93d8e74cb1db42cfb230e5eee
|
|
| MD5 |
646c32a2ed457f3a0f3c48095af553d0
|
|
| BLAKE2b-256 |
e39642a2ced3d37f3481b9874f7fb5d5c5bd53abbb6eda7ae25fe30571479edd
|
File details
Details for the file decotrace_debug-1.0.0-py3-none-any.whl.
File metadata
- Download URL: decotrace_debug-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b7c57cb18ffdc0a27100179ce0ac26bbfc08aa5430fa3d02f0bb96d3f56307
|
|
| MD5 |
22f778a4d47d9ccd8e059e02e038013e
|
|
| BLAKE2b-256 |
13548faf696011f773859461e734f60ff641a5184385caf1b76c762b62d4d9ef
|