PySnooper
PySnooper is a debugging tool that allows to track the operation of lines in Python code and the change of local variables. It works by adding a single decorator to functions, eliminating the need to install a comprehensive debugger. Outputs can be redirected to the standard error stream, a file, stream, or a callable object.
PY
cool-RR · Log Management
STARS16.6K
FORKS972
COMMITS333
CONTRIBUTORS27
VERSION1.2.0
UPDATED4 mo ago
PythonDebuggingKod İzlemeDevelopmentMIT
Common commercial products in this category: Splunk, Datadog Logs, Sumo Logic
What can it do?
- By adding a decorator to the function you want to study, you get a line-by-line work journal.
- You just watch that range by taking a certain part of the code into the context block.
- You follow the values of expressions other than local variables by giving them a tracking list.
User reviews
- • NeutralHacker News
PySnooper: Never use print for debugging again
“That looks really nice! I normally use pudb which is a curses-based debugger but pudb falls short when the debugged program runs with several threads or if it uses an asynchronous event loop. Having a non-interactive debugger like PySnooper could definitely help in such…”