{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"},{"label":"Debuggers","url":"https://skillfed.io/packages/category/software-development-debuggers"}],"enrichment":{"capability":"Automatically captures and displays local variables in Python tracebacks, eliminating manual debug logging while keeping exception context readable.","skillfed_tags":["exception-debugging","traceback-enhancement","logging-utility"],"use_cases":["Quickly diagnose why a function failed in development without adding temporary print statements or try-except blocks.","Log exceptions to a file or logger with full variable context for post-mortem debugging in production.","Inspect local state in Jupyter notebooks or IPython sessions after an error without re-running cells.","Reduce exception-handling boilerplate in data processing pipelines where you want to see intermediate values on failure.","Customize traceback output (e.g., skip certain files, limit string length) to keep logs readable while retaining key debug info."],"what_it_does":"traceback-with-variables is a lightweight debugging utility that intercepts Python exceptions and automatically prints the values of all local variables at each stack frame, without requiring you to manually add logging or exception-handling boilerplate. Instead of writing try-except blocks with formatted error messages listing every variable, you import the module once and get rich, colorized variable context for free whenever an exception occurs.\n\nIt works as a global hook (via activate_by_import), a decorator on individual functions, or a context manager around code blocks. You can also print the current stack without an exception, customize variable display length and filtering, and route output to loggers instead of stdout. The package is designed for both development debugging and small-scale production use, where the ability to see exactly what values caused a crash can save hours of reproduction and log-digging.","worth_installing":"Yes. Zero runtime dependencies, permissive license, active maintenance, and no known vulnerabilities make it a safe, low-friction addition. The core value\u2014eliminating repetitive debug logging\u2014is real and saves time in both development and production troubleshooting. Install it if you regularly spend time reconstructing variable state from exceptions."},"id":"traceback-with-variables","links":{"html":"https://skillfed.io/packages/traceback-with-variables","md":"https://skillfed.io/packages/traceback-with-variables.md","pypi":"https://pypi.org/project/traceback-with-variables/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-24","license_spdx":null,"license_treatment":"permissive","name":"traceback-with-variables","python_support":"supports_current","summary":"Adds variables to python traceback. Simple, lightweight, controllable. Debug reasons of exceptions by logging or pretty printing colorful variable contexts for each frame in a stacktrace, showing every value. Dump locals environments after errors to console, files, and loggers. Works with Jupyter and IPython."},"popularity":{"monthly_downloads":761416,"position":5128,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.2.1"}
