{"categories":[{"label":"Debuggers","url":"https://skillfed.io/packages/category/software-development-debuggers"}],"enrichment":{"capability":"PySnooper is a decorator-based debugging tool that logs function execution line-by-line, showing which lines run and how local variables change, without requiring debugger setup.","skillfed_tags":["debugging","development-tools","logging"],"use_cases":["Trace execution flow through a complex function to understand control flow without a debugger.","Log variable state changes during development to catch unexpected mutations or initialization bugs.","Debug legacy or enterprise code where attaching a debugger is impractical or slow.","Inspect function behavior in production-like environments by redirecting output to a log file.","Watch specific expressions like object attributes or dictionary keys during execution."],"what_it_does":"PySnooper is a lightweight debugging decorator that replaces ad-hoc print statements with structured execution logging. When you decorate a function with @pysnooper.snoop(), it automatically logs every line executed, the order in which they run, and the exact moment each local variable changes. The output goes to stderr by default but can be redirected to a file or custom stream.\n\nIt's designed for situations where setting up a full debugger feels like overkill\u2014you just want to see what your code is actually doing. You can trace entire functions or wrap specific code blocks in a context manager. It supports watching arbitrary expressions beyond just local variables and can follow execution into called functions via a depth parameter.","worth_installing":"Yes. PySnooper is a zero-friction, actively maintained tool with no dependencies and a permissive license. It solves a real debugging workflow gap\u2014faster than print debugging, simpler than a full debugger setup. Install it if you debug Python code interactively."},"id":"pysnooper","links":{"html":"https://skillfed.io/packages/pysnooper","md":"https://skillfed.io/packages/pysnooper.md","pypi":"https://pypi.org/project/pysnooper/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-05-31","license_spdx":null,"license_treatment":"permissive","name":"PySnooper","python_support":"unspecified","summary":"A poor man's debugger for Python."},"popularity":{"monthly_downloads":525918,"position":6182,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.3"}
