icecream
PySnooper
Our great sponsors
icecream | PySnooper | |
---|---|---|
41 | 13 | |
8,427 | 16,254 | |
- | - | |
5.6 | 5.5 | |
25 days ago | 3 months ago | |
Python | Python | |
MIT License | MIT License |
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.
icecream
-
Show HN: Dbg.h: C macro for quick and dirty print debugging
Hey, very useful. Thanks! Similar to ic() for python, but with the nice ability to be used inline.
https://github.com/gruns/icecream
- When you are looking at someone else's code base and you want to make a copy of it to put in a million print statements to understand it, what is good practice in terms of version control and naming the copy?
-
Pythoneers here, what are some of the best python tricks you guys use when progrmming with python
Icecream is great for this. Just calling ic(foo) gives you the same thing on stderr.
- What's you fav ice cream??
-
What Python debugger do you use?
I get around this by using loguru (a wrapper around python's logger), so I get information like the calling function and line number with my debugging statements. I don't use it these days (and actually built something extremely similar around the same time), but icecream is another alternative that facilitates debugging-by-print
- Top 3 hardest things with debugging as a beginner?
-
Does anyone use python debugger?
Most of the time I simply use icecream (a much better version of print()), and sometimes, I use pudb (a visual debugger) for tougher/trickier bugs.
-
Let's do a war
We also have ice cream
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
I found icecream in a post on this subreddit and still use it as an alternative to print for debugging.
-
A script for print debugging python code
In the future using something like icecream might be interesting as well.
PySnooper
-
Logging code mess
Definitely not for production, but for debugging (esp. in cases where interactive debugging doesn't work) I've found PySnooper very useful
- What Python debugger do you use?
- What a good debugger can do
-
Trace your Python process line by line with minimal overhead!
Looks interesting I will definitely try this.
For those that find this interesting, you might also like pysnooper - I use it all the time.
https://github.com/cool-RR/PySnooper
https://python.plainenglish.io/pysnooper-stop-debugging-pyth...
-
What is your favorite ,most underrated 3rd party python module that made your programming 10 times more easier and less code ? so we can also try that out :-) .as a beginner , mine is pyinputplus
Found PySnooper the other day.
-
What was the most helpful resource that allowed you become a better coder?
pysnooper! https://github.com/cool-RR/PySnooper
-
“I think the vast majority of developers still debug using print() statements”
Shameless plug: PySnooper is a debugging tool for Python that lets you debug in a way that's as easy as adding print statements, but gives you a lot more information automatically.
https://github.com/cool-RR/PySnooper/
HN thread: https://news.ycombinator.com/item?id=19717786
-
Top python libraries/ frameworks that you suggest every one
snoop or pysnooper
-
No more Print For Debugging In Python Anymore
If you want to install a library, pysnooper is cool. It's like an automatic print on every line of your function, with values.
-
The unreasonable effectiveness of print debugging
The Python package PySnooper is pretty good for "fancy" print debug statements: https://github.com/cool-RR/pysnooper
I've caught quite a few bugs using this show-me-all-locals() approach...
What are some alternatives?
pdb++
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
Loguru - Python logging made (stupidly) simple
snoop - A powerful set of Python debugging tools, based on PySnooper
py-spy - Sampling profiler for Python programs
django-modelcluster - Django extension to allow working with 'clusters' of models as a single unit, independently of the database
Laboratory - Achieving confident refactoring through experimentation with Python 2.7 & 3.3+
python-devtools - Dev tools for python
remote-pdb - Remote vanilla PDB (over TCP sockets).
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)
django-debug-toolbar - A configurable set of panels that display various debug information about the current request/response.
locust - Write scalable load tests in plain Python 🚗💨