pymg
watchpoints
pymg | watchpoints | |
---|---|---|
2 | 7 | |
86 | 462 | |
- | - | |
8.2 | 1.5 | |
9 months ago | about 1 year ago | |
Python | Python | |
GNU General Public License v3.0 only | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pymg
-
Pymg – A CLI that displays Python error messages more readably
pymg is a CLI tool that can interpret Python files by the Python interpreter and display the error message in a more readable way if an exception occurs.
I will be grateful if you look at the repository and comment.
https://github.com/mimseyedi/pymg
watchpoints
-
What a good debugger can do
It's sad that Python does not really support some of these debugging methods.
E.g. you cannot really watch variable changes. There are some workarounds, like writing a custom __setattr__ or __setattribute__ in case of an object, or checking all STORE_* operations. https://youtrack.jetbrains.com/issue/PY-30387 https://github.com/gaogaotiantian/watchpoints
Reverse debugging is also sth I would like to have, and there are a few projects to support this, but it's not really well supported in standard CPython. https://foss.heptapod.net/pypy/revdb https://pytrace.com/
-
Is there a tool to run code and AFTER that look at execution step by step.
There is also the watchpoints module to track changes to variables, but I don't think you can use the two of them together since they both use the same underlying callback in Python.
- Watchpoints - an easy-to-use, intuitive variable/object monitor tool for Python that behaves similar to watchpoints in gdb.
-
Show HN: Watchpoints, an easy to use watchpoints equivalent library for Python
It uses Python's built-in inspect module to get the caller frame. https://github.com/gaogaotiantian/watchpoints/blob/68bc13716...
It then uses sys.settrace (which is intended as an interface for debuggers) to step through the code and check whether the variable has been changed. Documentation on sys.settrace: https://docs.python.org/3/library/sys.html#sys.settrace
Python exposes most of its guts as part of the standard library, making clever hacks like this possible.
What are some alternatives?
Jaldt - Jaldt is a package for working with date and time based on Jalali calendar and date.
python-varname - Dark magics about variable names in python
flow-storm-debugger - A debugger for Clojure and ClojureScript with some unique features.
debug-adapter-protocol - Defines a common protocol for debug adapters.
grub2-theme-preview - :city_sunrise: Preview a full GRUB 2.x theme (or just a background image) using KVM / QEMU
rr - Record and Replay Framework
spdlog - Fast C++ logging library.
delve - Delve is a debugger for the Go programming language.