/dbgpy

Python implementation of Rust's dbg! macro using CSTs

Primary LanguagePythonMIT LicenseMIT

dbgpy

Debug print inspired by Rust's dbg! macro.

Example:

from dbgpy import dbg
import numpy as np

arr = np.linspace(0, 10)

dbg(arr.shape)

Outputs

main.py:6: arr.shape = (50,)